Package com.treemap
Class DefaultTreeMapLabelRenderer<C,N,Row,Column,Color,Font>
java.lang.Object
com.macrofocus.labeling.EnhancedLabel<Color,Font>
com.treemap.DefaultTreeMapLabelRenderer<C,N,Row,Column,Color,Font>
- Type Parameters:
N
-
- All Implemented Interfaces:
TreeMapLabelRenderer<C,
N, Row, Column, Color, Font>
public class DefaultTreeMapLabelRenderer<C,N,Row,Column,Color,Font>
extends com.macrofocus.labeling.EnhancedLabel<Color,Font>
implements TreeMapLabelRenderer<C,N,Row,Column,Color,Font>
The standard class for rendering (displaying) labels in a TreeMapView.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.macrofocus.labeling.EnhancedLabel
com.macrofocus.labeling.EnhancedLabel.ContrastEnhancement, com.macrofocus.labeling.EnhancedLabel.Effect, com.macrofocus.labeling.EnhancedLabel.Rendering
-
Field Summary
Fields inherited from class com.macrofocus.labeling.EnhancedLabel
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, NEXT, RIGHT, TOP, TRAILING, VERTICAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTreeMapLabelRendererComponent
(TreeMapView<C, N, Row, Column, Color, Font> view, TreeMapField<N, Column> field, TreeMapFieldSettings<Color, Font> settings, N node, Dimension dimension) Returns the component used for drawing the labels values.Methods inherited from class com.macrofocus.labeling.EnhancedLabel
getAngle, getBackground, getDesiredHeight, getDesiredWidth, getEffect, getEffectOpacity, getFont, getForeground, getHeight, getHorizontalAlignment, getInsetBottom, getInsetLeft, getInsetRight, getInsetTop, getMinimumCharactersToDisplay, getName, getProperties, getRendering, getText, getVerticalAlignment, getWidth, isEnabled, isHTML, isJustified, isOpaque, setAngle, setBackground, setDesiredHeight, setDesiredWidth, setEffect, setEffectOpacity, setFont, setForeground, setHorizontalAlignment, setHTML, setInsetBottom, setInsetLeft, setInsetRight, setInsets, setInsetTop, setJustified, setMinimumCharactersToDisplay, setName, setOpaque, setRendering, setText, setVerticalAlignment
-
Constructor Details
-
DefaultTreeMapLabelRenderer
public DefaultTreeMapLabelRenderer()Creates a default label renderer.
-
-
Method Details
-
getTreeMapLabelRendererComponent
public com.macrofocus.labeling.EnhancedLabel<Color,Font> getTreeMapLabelRendererComponent(TreeMapView<C, N, Row, Column, Color, Font> view, TreeMapField<N, Column> field, TreeMapFieldSettings<Color, Font> settings, N node, Dimension dimension) Description copied from interface:TreeMapLabelRenderer
Returns the component used for drawing the labels values.- Specified by:
getTreeMapLabelRendererComponent
in interfaceTreeMapLabelRenderer<C,
N, Row, Column, Color, Font> - Parameters:
view
- the viewfield
- the field for which the value should be queriednode
- the node for which the value should be queried- Returns:
- the component
-