Package com.macrofocus.treemap
Class DefaultTreeMapHeaderRenderer<N,Row,Column,Color,Font>
- java.lang.Object
-
- com.macrofocus.labeling.EnhancedLabel<Color,Font>
-
- com.macrofocus.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.
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeMapHeaderRenderer()
Creates a default label renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
com.macrofocus.labeling.EnhancedLabel<Color,Font>
getTreeMapHeaderRendererComponent(TreeMapModel<N,Row,Column,Color,Font> model, N node, java.awt.Dimension dimension)
Returns the component used for drawing the headers.boolean
isOpaque()
void
setName(java.lang.String name)
void
setOpaque(boolean opaque)
protected void
setValue(java.lang.Object value)
Sets theString
object for the cell being rendered tovalue
.-
Methods inherited from class com.macrofocus.labeling.EnhancedLabel
getAngle, getBackground, getBorder, getDesiredSize, getEffect, getEffectOpacity, getFont, getForeground, getHeight, getHorizontalAlignment, getInsets, getMinimumCharactersToDisplay, getProperties, getRendering, getText, getVerticalAlignment, getWidth, isEnabled, isJustified, setAngle, setBackground, setBorder, setDesiredSize, setEffect, setEffectOpacity, setFont, setForeground, setHorizontalAlignment, setJustified, setMinimumCharactersToDisplay, setRendering, setText, setVerticalAlignment
-
-
-
-
Method Detail
-
getTreeMapHeaderRendererComponent
public com.macrofocus.labeling.EnhancedLabel<Color,Font> getTreeMapHeaderRendererComponent(TreeMapModel<N,Row,Column,Color,Font> model, N node, java.awt.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
protected void setValue(java.lang.Object value)
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:
JLabel.setText(String)
-
setOpaque
public void setOpaque(boolean opaque)
-
isOpaque
public boolean isOpaque()
-
setName
public void setName(java.lang.String name)
-
-