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 floatMINIMUM_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 doublecomputePreferredHeight(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)doublegetLeftSpace(TreeMapModel<N,Row,Column,Color,Font> model)doublegetTopSpace(TreeMapModel<N,Row,Column,Color,Font> model)voidpaintParent(TGraphics<Color,Font> g2, java.awt.Rectangle bounds, N node, TreeMapView view, int pass, int passes)voidsetHeadless(Headless headless)java.awt.Shapesubtract(TreeMapModel<N,Row,Column,Color,Font> model, java.awt.Shape shape, N node)java.lang.StringtoString()-
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:
getTopSpacein interfaceLabeling<N,Row,Column,Color,Font>- Overrides:
getTopSpacein classAbstractLabeling<N,Row,Column,Color,Font>
-
getLeftSpace
public double getLeftSpace(TreeMapModel<N,Row,Column,Color,Font> model)
- Specified by:
getLeftSpacein interfaceLabeling<N,Row,Column,Color,Font>- Overrides:
getLeftSpacein 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:
toStringin classjava.lang.Object
-
-