public class PaddingDecorator extends CellPainterWrapper
Constructor and Description |
---|
PaddingDecorator(ICellPainter interiorPainter) |
PaddingDecorator(ICellPainter interiorPainter,
int padding) |
PaddingDecorator(ICellPainter interiorPainter,
int topPadding,
int rightPadding,
int bottomPadding,
int leftPadding) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.graphics.Color |
getBackgroundColor(ILayerCell cell,
IConfigRegistry configRegistry) |
ICellPainter |
getCellPainterAt(int x,
int y,
ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle adjustedCellBounds,
IConfigRegistry configRegistry) |
org.eclipse.swt.graphics.Rectangle |
getInteriorBounds(org.eclipse.swt.graphics.Rectangle adjustedCellBounds) |
int |
getPreferredHeight(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
IConfigRegistry configRegistry)
Get the preferred height of the cell when rendered by this painter.
|
int |
getPreferredWidth(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
IConfigRegistry configRegistry)
Get the preferred width of the cell when rendered by this painter.
|
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle adjustedCellBounds,
IConfigRegistry configRegistry) |
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
public PaddingDecorator(ICellPainter interiorPainter)
public PaddingDecorator(ICellPainter interiorPainter, int padding)
public PaddingDecorator(ICellPainter interiorPainter, int topPadding, int rightPadding, int bottomPadding, int leftPadding)
public int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPainter
getPreferredWidth
in interface ICellPainter
getPreferredWidth
in class CellPainterWrapper
public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPainter
getPreferredHeight
in interface ICellPainter
getPreferredHeight
in class CellPainterWrapper
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
paintCell
in interface ICellPainter
paintCell
in class CellPainterWrapper
public org.eclipse.swt.graphics.Rectangle getInteriorBounds(org.eclipse.swt.graphics.Rectangle adjustedCellBounds)
protected org.eclipse.swt.graphics.Color getBackgroundColor(ILayerCell cell, IConfigRegistry configRegistry)
public ICellPainter getCellPainterAt(int x, int y, ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle adjustedCellBounds, IConfigRegistry configRegistry)
getCellPainterAt
in interface ICellPainter
getCellPainterAt
in class CellPainterWrapper
Copyright © 2013. All Rights Reserved.