public class LineBorderDecorator extends CellPainterWrapper
Constructor and Description |
---|
LineBorderDecorator(ICellPainter interiorPainter) |
LineBorderDecorator(ICellPainter interiorPainter,
BorderStyle defaultBorderStyle) |
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.
|
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
public LineBorderDecorator(ICellPainter interiorPainter)
public LineBorderDecorator(ICellPainter interiorPainter, BorderStyle defaultBorderStyle)
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 rectangle, IConfigRegistry configRegistry)
paintCell
in interface ICellPainter
paintCell
in class CellPainterWrapper
Copyright © 2013. All Rights Reserved.