JIDE 3.5.15

com.jidesoft.treemap
Class ExpandLabeling<N>

java.lang.Object
  extended by com.jidesoft.treemap.ExpandLabeling<N>
Type Parameters:
N - the type of nodes
All Implemented Interfaces:
Labeling<N>

public class ExpandLabeling<N>
extends Object

Display the label of the parent nodes in the center of its children (overlaid).


Field Summary
protected static float COLOR_SIMILARITY_THRESHOLD
           
protected static float SHARE_OF_ZOOM_FACTOR
           
 
Constructor Summary
ExpandLabeling()
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ExpandLabeling

public ExpandLabeling()
Method Detail

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

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>

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)

JIDE 3.5.15