Package com.treemap

# Class SliceAndDiceAlgorithm.AlternateOrientationStrategy

java.lang.Object
com.treemap.SliceAndDiceAlgorithm.AlternateOrientationStrategy

All Implemented Interfaces:
  `SliceAndDiceAlgorithm.OrientationStragegy`

Enclosing class:
  `SliceAndDiceAlgorithm`

public static class SliceAndDiceAlgorithm.AlternateOrientationStrategy extends Object implements SliceAndDiceAlgorithm.OrientationStragegy
Switched between vertical and horizontal at each hierarchy level

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AlternateOrientationStrategy()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isVertical(com.macrofocus.geom.Rectangle2D bounds, TreeMapNode parent)`
  Tell whether the subdivisions of a node should be laid out vertically or horizontally.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AlternateOrientationStrategy

    public AlternateOrientationStrategy()

- ## Method Details

  - ### isVertical

    public boolean isVertical(com.macrofocus.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 interface `SliceAndDiceAlgorithm.OrientationStragegy`
    Parameters:
      `bounds` - the bounding rectangle of the parent
      `parent` - the parent node
    Returns:
      true for vertical orientation, false otherwise