Package com.treemap
Class SliceAndDiceAlgorithm.VerticalOrientationStrategy
java.lang.Object
com.treemap.SliceAndDiceAlgorithm.VerticalOrientationStrategy
- All Implemented Interfaces:
SliceAndDiceAlgorithm.OrientationStragegy
- Enclosing class:
SliceAndDiceAlgorithm
public static class SliceAndDiceAlgorithm.VerticalOrientationStrategy
extends Object
implements SliceAndDiceAlgorithm.OrientationStragegy
Always vertical
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisVertical(com.macrofocus.geom.Rectangle2D bounds, TreeMapNode parent) Tell whether the subdivisions of a node should be laid out vertically or horizontally.
-
Constructor Details
-
VerticalOrientationStrategy
public VerticalOrientationStrategy()
-
-
Method Details
-
isVertical
Description copied from interface:SliceAndDiceAlgorithm.OrientationStragegyTell whether the subdivisions of a node should be laid out vertically or horizontally.- Specified by:
isVerticalin interfaceSliceAndDiceAlgorithm.OrientationStragegy- Parameters:
bounds- the bounding rectangle of the parentparent- the parent node- Returns:
- true for vertical orientation, false otherwise
-