public class BeveledBorderDecorator extends CellPainterWrapper
Constructor and Description |
---|
BeveledBorderDecorator(ICellPainter interiorPainter) |
BeveledBorderDecorator(ICellPainter interiorPainter,
boolean uplift) |
Modifier and Type | Method and Description |
---|---|
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.
|
org.eclipse.swt.graphics.Rectangle |
getWrappedPainterBounds(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
IConfigRegistry configRegistry) |
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle adjustedCellBounds,
IConfigRegistry configRegistry) |
getCellPainterAt, getWrappedPainter, setWrappedPainter
public BeveledBorderDecorator(ICellPainter interiorPainter)
interiorPainter
- The painter which should be wrapped by this decorator.public BeveledBorderDecorator(ICellPainter interiorPainter, boolean uplift)
interiorPainter
- The painter which should be wrapped by this decorator.uplift
- Flag to determine whether the cell borders should be painted uplift or sunk.
By default this flag is set to true
. Set it to false
if
the cell should be rendered sunk.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 org.eclipse.swt.graphics.Rectangle getWrappedPainterBounds(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
getWrappedPainterBounds
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
Copyright © 2013. All Rights Reserved.