com.jidesoft.treemap
Class SurroundLabeling<N>
java.lang.Object
com.jidesoft.treemap.SurroundLabeling<N>
- Type Parameters:
N
- the type of nodes
- All Implemented Interfaces:
- Labeling<N>
public class SurroundLabeling<N>
- extends Object
Display the label of the parent node above its children.
Method Summary |
protected Color |
adjustLabelColor(Color foreground,
Color background)
|
int |
getLeftSpace(TreeMapModel<N> model)
|
protected float |
getTopHeaderSpacing(N node,
TreeMapView view,
TreeMapModel model)
|
int |
getTopSpace(TreeMapModel<N> model)
|
void |
paintLeaf(Graphics2D g2,
Rectangle bounds,
N node,
TreeMapView view)
|
void |
paintParent(Graphics2D g2,
Rectangle bounds,
N node,
TreeMapView view,
int pass,
int passes)
|
Rectangle2D |
subtract(TreeMapModel<N> model,
Rectangle2D rectangle,
N node)
|
String |
toString()
|
SHARE_OF_ZOOM_FACTOR
protected static final float SHARE_OF_ZOOM_FACTOR
- See Also:
- Constant Field Values
COLOR_SIMILARITY_THRESHOLD
protected static final float COLOR_SIMILARITY_THRESHOLD
- See Also:
- Constant Field Values
SurroundLabeling
public SurroundLabeling()
getTopSpace
public int getTopSpace(TreeMapModel<N> model)
-
- Specified by:
getTopSpace
in interface Labeling<N>
getLeftSpace
public int getLeftSpace(TreeMapModel<N> model)
-
- Specified by:
getLeftSpace
in interface Labeling<N>
subtract
public Rectangle2D subtract(TreeMapModel<N> model,
Rectangle2D rectangle,
N node)
-
paintParent
public void paintParent(Graphics2D g2,
Rectangle bounds,
N node,
TreeMapView view,
int pass,
int passes)
-
toString
public String toString()
- Overrides:
toString
in class Object
paintLeaf
public void paintLeaf(Graphics2D g2,
Rectangle bounds,
N node,
TreeMapView view)
-
- Specified by:
paintLeaf
in interface Labeling<N>
adjustLabelColor
protected Color adjustLabelColor(Color foreground,
Color background)
getTopHeaderSpacing
protected float getTopHeaderSpacing(N node,
TreeMapView view,
TreeMapModel model)