Package com.treemap
Class SurroundLabeling<N,Row,Column,Color,Font>
java.lang.Object
com.treemap.AbstractLabeling<N,Row,Column,Color,Font>
com.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
FieldsFields inherited from class com.treemap.AbstractLabeling
COLOR_SIMILARITY_THRESHOLD, SHARE_OF_ZOOM_FACTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
computePreferredHeight
(TreeMapModel<N, Row, Column, Color, Font> model, TGraphics<Color, Font> g2, com.macrofocus.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, com.macrofocus.geom.Rectangle bounds, N node, TreeMapView view, int pass, int passes) void
setHeadless
(Headless headless) com.macrofocus.geom.Shape
toString()
Methods inherited from class com.treemap.AbstractLabeling
adjustLabelColor, calcCenterOfMass, findEnclosedRectangle, getArea, getCentroid, getPoints, getTopHeaderSpacing, getTreeMapFieldsByVerticalAlignment, paintFields, paintLabel, paintLeaf
-
Field Details
-
MINIMUM_FONT_SIZE_TO_DISPLAY
protected static final float MINIMUM_FONT_SIZE_TO_DISPLAY- See Also:
-
-
Constructor Details
-
SurroundLabeling
public SurroundLabeling()
-
-
Method Details
-
setHeadless
-
getTopSpace
- Specified by:
getTopSpace
in interfaceLabeling<N,
Row, Column, Color, Font> - Overrides:
getTopSpace
in classAbstractLabeling<N,
Row, Column, Color, Font>
-
getLeftSpace
- Specified by:
getLeftSpace
in interfaceLabeling<N,
Row, Column, Color, Font> - Overrides:
getLeftSpace
in classAbstractLabeling<N,
Row, Column, Color, Font>
-
subtract
-
computePreferredHeight
-
paintParent
public void paintParent(TGraphics<Color, Font> g2, com.macrofocus.geom.Rectangle bounds, N node, TreeMapView view, int pass, int passes) -
getBackgroundColor
-
getForegroundColor
-
getEffectColor
-
toString
-