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.StringgetName()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.booleanisOpaque()voidsetName(java.lang.String name)voidsetOpaque(boolean opaque)protected voidsetValue(java.lang.Object value)Sets theStringobject 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:TreeMapHeaderRendererReturns the component used for drawing the headers.- Specified by:
getTreeMapHeaderRendererComponentin interfaceTreeMapHeaderRenderer<N,Row,Column,Color,Font>- Parameters:
model- the modelnode- the node- Returns:
- the component
-
setValue
protected void setValue(java.lang.Object value)
Sets theStringobject for the cell being rendered tovalue.- Parameters:
value- the string value for this cell; if value isnullit 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)
-
-