Class VennAlgorithm<N,Row,Column,Color,Font>

java.lang.Object
com.treemap.AbstractAlgorithm<N,Row,Column,Color,Font>
com.treemap.swing.venn.VennAlgorithm<N,Row,Column,Color,Font>
All Implemented Interfaces:
Algorithm<N,Row,Column,Color,Font>

public class VennAlgorithm<N,Row,Column,Color,Font> extends AbstractAlgorithm<N,Row,Column,Color,Font>
  • Constructor Details

    • VennAlgorithm

      public VennAlgorithm()
    • VennAlgorithm

      public VennAlgorithm(int maxSize)
  • Method Details

    • startLayout

      public void startLayout(com.macrofocus.geom.Rectangle2D bounds, TreeMapModel<N,Row,Column,Color,Font> model, N root, TreeMapWorker worker)
      Description copied from class: AbstractAlgorithm
      Do nothing by default.
      Specified by:
      startLayout in interface Algorithm<N,Row,Column,Color,Font>
      Overrides:
      startLayout in class AbstractAlgorithm<N,Row,Column,Color,Font>
      Parameters:
      bounds - the bounds of the view
      model - the model
      root - the root node
    • breadthFirstLayout

      public boolean breadthFirstLayout(com.macrofocus.geom.Shape shape, MutableTreeMapNode parent, MutableTreeMapNode[] children, double sumSizes, int horizontalVanishingPoint, int verticalVanishingPoint, TreeMapWorker worker)
      Description copied from interface: Algorithm
      Arrange the items in the given array to fill the given shape. This is called during the first pass, while traversing the tree top down.
      Parameters:
      shape - the current rectangle being divided.
      parent - the parent node.
      children - the items to map.
      sumSizes - the size of the parent.
      worker - the worker thread
      Returns:
      true if the layout has been cancelled, false otherwise
    • isCompatible

      public boolean isCompatible(com.macrofocus.geom.Shape shape)
      Description copied from interface: Algorithm
      Indicates whether the layout algorithm can handle the given geometry of its parent
      Parameters:
      shape - the geometry of its parent
      Returns:
      true if it can lay out the children using the specified geometrical shape