Class PercentageBarDecorator
- 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.decorator.PercentageBarDecorator
-
- All Implemented Interfaces:
ICellPainter
public class PercentageBarDecorator extends CellPainterWrapper
Draws a rectangular bar in cell proportional to the value of the cell.
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigAttribute<org.eclipse.swt.graphics.Color>
PERCENTAGE_BAR_COMPLETE_REGION_END_COLOR
static ConfigAttribute<org.eclipse.swt.graphics.Color>
PERCENTAGE_BAR_COMPLETE_REGION_START_COLOR
static ConfigAttribute<org.eclipse.swt.graphics.Color>
PERCENTAGE_BAR_INCOMPLETE_REGION_COLOR
-
Constructor Summary
Constructors Constructor Description PercentageBarDecorator(ICellPainter interiorPainter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.CellPainterWrapper
getCellPainterAt, getPreferredHeight, getPreferredWidth, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
-
-
-
Field Detail
-
PERCENTAGE_BAR_COMPLETE_REGION_START_COLOR
public static final ConfigAttribute<org.eclipse.swt.graphics.Color> PERCENTAGE_BAR_COMPLETE_REGION_START_COLOR
-
PERCENTAGE_BAR_COMPLETE_REGION_END_COLOR
public static final ConfigAttribute<org.eclipse.swt.graphics.Color> PERCENTAGE_BAR_COMPLETE_REGION_END_COLOR
-
PERCENTAGE_BAR_INCOMPLETE_REGION_COLOR
public static final ConfigAttribute<org.eclipse.swt.graphics.Color> PERCENTAGE_BAR_INCOMPLETE_REGION_COLOR
-
-
Constructor Detail
-
PercentageBarDecorator
public PercentageBarDecorator(ICellPainter interiorPainter)
-
-
Method Detail
-
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 classCellPainterWrapper
-
-