Class CushionRectangleRendererEx<N>
java.lang.Object
de.engehausen.treemap.swing.impl.CushionRectangleRenderer<N>
de.engehausen.treemap.swing.impl.CushionRectangleRendererEx<N>
- Type Parameters:
N- the type of node the renderer supports
- All Implemented Interfaces:
IRectangleRenderer<N,Graphics2D, Color>
Rectangle renderer that attempts to produce a "cushion effect" for
the rectangles. It does not paint any labels. The highlight method
highlights the selected node and frames it in red. The topmost parent
under the root node is framed in yellow.
-
Field Summary
Fields inherited from class de.engehausen.treemap.swing.impl.CushionRectangleRenderer
colorMappingColor, colorMappingRGB, len -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhighlightParents(Graphics2D graphics, ITreeModel<IRectangle<N>> model, IRectangle<N> rectangle, IColorProvider<N, Color> colorProvider, ILabelProvider<N> labelProvider) Methods inherited from class de.engehausen.treemap.swing.impl.CushionRectangleRenderer
createColorRange, createCushion, getColorRange, getDarker, highlight, paintCushion, render, renderSlow, toRGB
-
Constructor Details
-
CushionRectangleRendererEx
public CushionRectangleRendererEx(int colorRangeSize) - Parameters:
colorRangeSize- the number of colors to use for the cushion; must be greater than 1
-
-
Method Details
-
highlightParents
protected void highlightParents(Graphics2D graphics, ITreeModel<IRectangle<N>> model, IRectangle<N> rectangle, IColorProvider<N, Color> colorProvider, ILabelProvider<N> labelProvider) - Overrides:
highlightParentsin classCushionRectangleRenderer<N>
-