public class XPBackgroundDecorator extends BackgroundPainter
Modifier and Type | Field and 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 and Description |
---|
XPBackgroundDecorator(ICellPainter interiorPainter) |
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) |
getBackgroundColour
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
public final org.eclipse.swt.graphics.Color separatorColor
public final org.eclipse.swt.graphics.Color gradientColor1
public final org.eclipse.swt.graphics.Color gradientColor2
public final org.eclipse.swt.graphics.Color gradientColor3
public final org.eclipse.swt.graphics.Color highlightColor1
public final org.eclipse.swt.graphics.Color highlightColor2
public final org.eclipse.swt.graphics.Color highlightColor3
public XPBackgroundDecorator(ICellPainter interiorPainter)
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 BackgroundPainter
Copyright © 2013. All Rights Reserved.