Package com.treemap
Class DefaultTreeMapHeaderRenderer<N,Row,Column,Color,Font>
java.lang.Object
com.macrofocus.labeling.EnhancedLabel<Color,Font>
com.treemap.DefaultTreeMapHeaderRenderer<N,Row,Column,Color,Font>
- Type Parameters:
N
-
- All Implemented Interfaces:
TreeMapHeaderRenderer<N,
Row, Column, Color, Font>
public class DefaultTreeMapHeaderRenderer<N,Row,Column,Color,Font>
extends com.macrofocus.labeling.EnhancedLabel<Color,Font>
implements TreeMapHeaderRenderer<N,Row,Column,Color,Font>
The standard class for rendering (displaying) headers 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 TypeMethodDescriptiongetName()
getTreeMapHeaderRendererComponent
(TreeMapModel<N, Row, Column, Color, Font> model, N node, Dimension dimension) Returns the component used for drawing the headers.boolean
isOpaque()
void
void
setOpaque
(boolean opaque) protected void
Sets theString
object for the cell being rendered tovalue
.Methods inherited from class com.macrofocus.labeling.EnhancedLabel
getAngle, getBackground, getDesiredHeight, getDesiredWidth, getEffect, getEffectOpacity, getFont, getForeground, getHeight, getHorizontalAlignment, getInsetBottom, getInsetLeft, getInsetRight, getInsetTop, getMinimumCharactersToDisplay, getProperties, getRendering, getText, getVerticalAlignment, getWidth, isEnabled, isHTML, isJustified, setAngle, setBackground, setDesiredHeight, setDesiredWidth, setEffect, setEffectOpacity, setFont, setForeground, setHorizontalAlignment, setHTML, setInsetBottom, setInsetLeft, setInsetRight, setInsets, setInsetTop, setJustified, setMinimumCharactersToDisplay, setRendering, setText, setVerticalAlignment
-
Constructor Details
-
DefaultTreeMapHeaderRenderer
public DefaultTreeMapHeaderRenderer()Creates a default label renderer.
-
-
Method Details
-
getTreeMapHeaderRendererComponent
public com.macrofocus.labeling.EnhancedLabel<Color,Font> getTreeMapHeaderRendererComponent(TreeMapModel<N, Row, Column, Color, Font> model, N node, Dimension dimension) Description copied from interface:TreeMapHeaderRenderer
Returns the component used for drawing the headers.- Specified by:
getTreeMapHeaderRendererComponent
in interfaceTreeMapHeaderRenderer<N,
Row, Column, Color, Font> - Parameters:
model
- the modelnode
- the node- Returns:
- the component
-
setValue
Sets theString
object for the cell being rendered tovalue
.- Parameters:
value
- the string value for this cell; if value isnull
it sets the text value to an empty string- See Also:
-
setOpaque
public void setOpaque(boolean opaque) -
isOpaque
public boolean isOpaque() -
setName
-
getName
-