org.graffiti.plugins.algorithms.reingoldtilford
Class OrientationStrategy

java.lang.Object
  extended by org.graffiti.plugins.algorithms.reingoldtilford.OrientationStrategy
All Implemented Interfaces:
Cloneable

public abstract class OrientationStrategy
extends Object
implements Cloneable

Subclasses of OrientationStrategy determine the orientation of a tree. See Orientation for details.

To provide a new orientation, create a class extending OrientationStrategy and add a new member to the Orientation enumeration.

In order to align the left of the tree layout to the absolute x-coordinate 0 and the top of the tree layout to the absolute y-coordinate 0, the width and height of the whole tree is passed to an OrientationStrategy by setHeight(double) and setWidth(double) before any calls to transformWritingNodePosition(java.awt.geom.Point2D.Double).

Version:
$Revision$ $Date$
Author:
Andreas Gleißner

Constructor Summary
OrientationStrategy()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientationStrategy

public OrientationStrategy()


Generated at 2012-05-30 11:01:25 PM CEST