Package com.treemap
Interface SliceAndDiceAlgorithm.OrientationStragegy
- All Known Implementing Classes:
SliceAndDiceAlgorithm.AlternateOrientationStrategy
,SliceAndDiceAlgorithm.BestOrientationStrategy
,SliceAndDiceAlgorithm.HoritzonalOrientationStrategy
,SliceAndDiceAlgorithm.VerticalOrientationStrategy
- Enclosing class:
- SliceAndDiceAlgorithm
public static interface SliceAndDiceAlgorithm.OrientationStragegy
Types of orientation of the rectangle divisions
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVertical
(com.macrofocus.geom.Rectangle2D bounds, TreeMapNode parent) Tell whether the subdivisions of a node should be laid out vertically or horizontally.
-
Method Details
-
isVertical
Tell whether the subdivisions of a node should be laid out vertically or horizontally.- Parameters:
bounds
- the bounding rectangle of the parentparent
- the parent node- Returns:
- true for vertical orientation, false otherwise
-