Class HierarchicalHideIndicatorOverlayPainter
java.lang.Object
org.eclipse.nebula.widgets.nattable.hideshow.indicator.HideIndicatorOverlayPainter
org.eclipse.nebula.widgets.nattable.hideshow.indicator.HierarchicalHideIndicatorOverlayPainter
- All Implemented Interfaces:
IOverlayPainter,IOverlayPainter2
Specialization of the
HideIndicatorOverlayPainter that renders the
hide indicator in the level header columns of a
HierarchicalTreeLayer. The identification of the level header columns
is done via the cell label HierarchicalTreeLayer.LEVEL_HEADER_CELL.- Since:
- 1.6
-
Field Summary
FieldsFields inherited from class org.eclipse.nebula.widgets.nattable.hideshow.indicator.HideIndicatorOverlayPainter
columnHeaderLayer, configRegistry, rowHeaderLayer -
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalHideIndicatorOverlayPainter(ILayer columnHeaderLayer, HierarchicalTreeLayer treeLayer) Creates aHierarchicalHideIndicatorOverlayPainterthat renders the hide indicator in the given given column header layer and theHierarchicalTreeLayerlevel header columns.HierarchicalHideIndicatorOverlayPainter(ILayer columnHeaderLayer, ILayer rowHeaderLayer, HierarchicalTreeLayer treeLayer) Creates aHierarchicalHideIndicatorOverlayPainterthat renders the hide indicator in the given header layers and theHierarchicalTreeLayerlevel header columns. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaintHiddenColumnIndicator(ILayer layer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle) Renders the indicator for hidden columns.protected voidpaintHiddenRowIndicator(ILayer layer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle) Renders the indicator for hidden rows.Methods inherited from class org.eclipse.nebula.widgets.nattable.hideshow.indicator.HideIndicatorOverlayPainter
getIndicatorColor, getIndicatorLineWidth, paintOverlay, paintOverlay, setConfigRegistry, setIndicatorColor, setIndicatorLineWidth, setLayerOnTop, setLayerToLeft
-
Field Details
-
treeLayer
-
-
Constructor Details
-
HierarchicalHideIndicatorOverlayPainter
public HierarchicalHideIndicatorOverlayPainter(ILayer columnHeaderLayer, HierarchicalTreeLayer treeLayer) Creates aHierarchicalHideIndicatorOverlayPainterthat renders the hide indicator in the given given column header layer and theHierarchicalTreeLayerlevel header columns.- Parameters:
columnHeaderLayer- The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can benullto avoid rendering of hidden column indicators.
-
HierarchicalHideIndicatorOverlayPainter
public HierarchicalHideIndicatorOverlayPainter(ILayer columnHeaderLayer, ILayer rowHeaderLayer, HierarchicalTreeLayer treeLayer) Creates aHierarchicalHideIndicatorOverlayPainterthat renders the hide indicator in the given header layers and theHierarchicalTreeLayerlevel header columns.- Parameters:
columnHeaderLayer- The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can benullto avoid rendering of hidden column indicators.rowHeaderLayer- The layer in the row header that should be used to determine the width of the hidden row indicator. Should be the top most layer in the row header region. Can benullto avoid rendering of hidden row indicators.
-
-
Method Details
-
paintHiddenColumnIndicator
protected void paintHiddenColumnIndicator(ILayer layer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle) Description copied from class:HideIndicatorOverlayPainterRenders the indicator for hidden columns. By default it renders only if a layer is provided as column header layer.- Overrides:
paintHiddenColumnIndicatorin classHideIndicatorOverlayPainter- Parameters:
layer- The layer as base for the overlay rendering.gc- The GC.xOffset- The x offset.yOffset- The y offset.rectangle- The print bounds for the rendering action.
-
paintHiddenRowIndicator
protected void paintHiddenRowIndicator(ILayer layer, org.eclipse.swt.graphics.GC gc, int xOffset, int yOffset, org.eclipse.swt.graphics.Rectangle rectangle) Description copied from class:HideIndicatorOverlayPainterRenders the indicator for hidden rows. By default it renders only if a layer is provided as row header layer.- Overrides:
paintHiddenRowIndicatorin classHideIndicatorOverlayPainter- Parameters:
layer- The layer as base for the overlay rendering.gc- The GC.xOffset- The x offset.yOffset- The y offset.rectangle- The print bounds for the rendering action.
-