Package com.macrofocus.treemap
Class SurroundLabeling<N,Row,Column,Color,Font>
- java.lang.Object
-
- com.macrofocus.treemap.AbstractLabeling<N,Row,Column,Color,Font>
-
- com.macrofocus.treemap.SurroundLabeling<N,Row,Column,Color,Font>
-
- Type Parameters:
N
- the type of nodes
- All Implemented Interfaces:
Labeling<N,Row,Column,Color,Font>
- Direct Known Subclasses:
ColoredSurroundLabeling
@JsType public class SurroundLabeling<N,Row,Column,Color,Font> extends AbstractLabeling<N,Row,Column,Color,Font>
Display the label of the parent node above its children.
-
-
Field Summary
Fields Modifier and Type Field Description protected static float
MINIMUM_FONT_SIZE_TO_DISPLAY
-
Fields inherited from class com.macrofocus.treemap.AbstractLabeling
COLOR_SIMILARITY_THRESHOLD, SHARE_OF_ZOOM_FACTOR
-
-
Constructor Summary
Constructors Constructor Description SurroundLabeling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
computePreferredHeight(TreeMapModel<N,Row,Column,Color,Font> model, TGraphics<Color,Font> g2, java.awt.geom.Rectangle2D rectangle, N node)
protected com.macrofocus.igraphics.CPColor<Color>
getBackgroundColor(N node, TreeMapModel model)
protected com.macrofocus.igraphics.CPColor<Color>
getEffectColor(N node, TreeMapModel model)
protected com.macrofocus.igraphics.CPColor<Color>
getForegroundColor(N node, TreeMapModel model)
double
getLeftSpace(TreeMapModel<N,Row,Column,Color,Font> model)
double
getTopSpace(TreeMapModel<N,Row,Column,Color,Font> model)
void
paintParent(TGraphics<Color,Font> g2, java.awt.Rectangle bounds, N node, TreeMapView view, int pass, int passes)
void
setHeadless(Headless headless)
java.awt.Shape
subtract(TreeMapModel<N,Row,Column,Color,Font> model, java.awt.Shape shape, N node)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.treemap.AbstractLabeling
adjustLabelColor, calcCenterOfMass, findEnclosedRectangle, getArea, getCentroid, getPoints, getTopHeaderSpacing, getTreeMapFieldsByVerticalAlignment, paintFields, paintLabel, paintLeaf
-
-
-
-
Field Detail
-
MINIMUM_FONT_SIZE_TO_DISPLAY
protected static final float MINIMUM_FONT_SIZE_TO_DISPLAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHeadless
public void setHeadless(Headless headless)
-
getTopSpace
public double getTopSpace(TreeMapModel<N,Row,Column,Color,Font> model)
- Specified by:
getTopSpace
in interfaceLabeling<N,Row,Column,Color,Font>
- Overrides:
getTopSpace
in classAbstractLabeling<N,Row,Column,Color,Font>
-
getLeftSpace
public double getLeftSpace(TreeMapModel<N,Row,Column,Color,Font> model)
- Specified by:
getLeftSpace
in interfaceLabeling<N,Row,Column,Color,Font>
- Overrides:
getLeftSpace
in classAbstractLabeling<N,Row,Column,Color,Font>
-
subtract
public java.awt.Shape subtract(TreeMapModel<N,Row,Column,Color,Font> model, java.awt.Shape shape, N node)
-
computePreferredHeight
protected double computePreferredHeight(TreeMapModel<N,Row,Column,Color,Font> model, TGraphics<Color,Font> g2, java.awt.geom.Rectangle2D rectangle, N node)
-
paintParent
public void paintParent(TGraphics<Color,Font> g2, java.awt.Rectangle bounds, N node, TreeMapView view, int pass, int passes)
-
getBackgroundColor
protected com.macrofocus.igraphics.CPColor<Color> getBackgroundColor(N node, TreeMapModel model)
-
getForegroundColor
protected com.macrofocus.igraphics.CPColor<Color> getForegroundColor(N node, TreeMapModel model)
-
getEffectColor
protected com.macrofocus.igraphics.CPColor<Color> getEffectColor(N node, TreeMapModel model)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-