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 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.
  • Method Details

    • isVertical

      boolean isVertical(com.macrofocus.geom.Rectangle2D bounds, TreeMapNode parent)
      Tell whether the subdivisions of a node should be laid out vertically or horizontally.
      Parameters:
      bounds - the bounding rectangle of the parent
      parent - the parent node
      Returns:
      true for vertical orientation, false otherwise