Class XPBackgroundDecorator
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
- org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.decorator.XPBackgroundDecorator
-
- All Implemented Interfaces:
ICellPainter
public class XPBackgroundDecorator extends BackgroundPainter
-
-
Field Summary
Fields Modifier and Type Field Description org.eclipse.swt.graphics.Color
gradientColor1
org.eclipse.swt.graphics.Color
gradientColor2
org.eclipse.swt.graphics.Color
gradientColor3
org.eclipse.swt.graphics.Color
highlightColor1
org.eclipse.swt.graphics.Color
highlightColor2
org.eclipse.swt.graphics.Color
highlightColor3
org.eclipse.swt.graphics.Color
separatorColor
-
Constructor Summary
Constructors Constructor Description XPBackgroundDecorator(ICellPainter interiorPainter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
getBackgroundColour
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
-
-
-
Field Detail
-
separatorColor
public final org.eclipse.swt.graphics.Color separatorColor
-
gradientColor1
public final org.eclipse.swt.graphics.Color gradientColor1
-
gradientColor2
public final org.eclipse.swt.graphics.Color gradientColor2
-
gradientColor3
public final org.eclipse.swt.graphics.Color gradientColor3
-
highlightColor1
public final org.eclipse.swt.graphics.Color highlightColor1
-
highlightColor2
public final org.eclipse.swt.graphics.Color highlightColor2
-
highlightColor3
public final org.eclipse.swt.graphics.Color highlightColor3
-
-
Constructor Detail
-
XPBackgroundDecorator
public XPBackgroundDecorator(ICellPainter interiorPainter)
-
-
Method Detail
-
getPreferredWidth
public int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Description copied from interface:ICellPainter
Get the preferred width of the cell when rendered by this painter. Used for auto-resize.- Specified by:
getPreferredWidth
in interfaceICellPainter
- Overrides:
getPreferredWidth
in classCellPainterWrapper
- Parameters:
cell
- The cell for which the preferred width is requested.gc
- The GC that is used for rendering.configRegistry
- The IConfigRegistry that contains the configuration used for rendering.- Returns:
- The preferred width of the given cell when rendered by this painter.
-
getPreferredHeight
public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
Description copied from interface:ICellPainter
Get the preferred height of the cell when rendered by this painter. Used for auto-resize.- Specified by:
getPreferredHeight
in interfaceICellPainter
- Overrides:
getPreferredHeight
in classCellPainterWrapper
- Parameters:
cell
- The cell for which the preferred height is requested.gc
- The GC that is used for rendering.configRegistry
- The IConfigRegistry that contains the configuration used for rendering.- Returns:
- The preferred height of the given cell when rendered by this painter.
-
paintCell
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, IConfigRegistry configRegistry)
- Specified by:
paintCell
in interfaceICellPainter
- Overrides:
paintCell
in classBackgroundPainter
-
-