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