com.mindfusion.diagramming.jlayout
Class TreeLayoutInfo

java.lang.Object
  extended by com.mindfusion.diagramming.jlayout.TreeLayoutInfo

public class TreeLayoutInfo
extends java.lang.Object


Constructor Summary
TreeLayoutInfo()
           
TreeLayoutInfo(int direction, float levelDistance, float nodeDistance, boolean keepRootPosition, float xGap, float yGap)
           
 
Method Summary
 boolean getCompactAssistants()
          Gets a value indicating whether the "assistant" trait is regarded when performing the layout.
 int getDirection()
          Gets or sets the layout direction.
 boolean getEnableAssistants()
          Gets a value indicating whether the "assistant" trait is regarded when performing the layout.
 boolean getKeepRootPosition()
          Gets or sets a flag, indicating whether the layout should preserve the position of the root node.
 float getLevelDistance()
          Gets or sets the minimal distance between two adjacent tree levels.
 float getNodeDistance()
          Gets or sets the minimal distance between two adjacent nodes in the same level.
 float getStretchFactor()
          Gets or sets a value indicating the stretch factor in radial layouts.
 float getXGap()
          Gets or sets the gap between the leftmost box and the left bound of the document.
 float getYGap()
          Gets or sets the gap between the topmost box and the top bound of the document.
 void setCompactAssistants(boolean value)
          Sets a value indicating whether the "assistant" trait is regarded when performing the layout.
 void setDirection(int value)
           
 void setEnableAssistants(boolean value)
          Sets a value indicating whether the "assistant" trait is regarded when performing the layout.
 void setKeepRootPosition(boolean value)
           
 void setLevelDistance(float value)
           
 void setNodeDistance(float value)
           
 void setStretchFactor(float value)
           
 void setXGap(float value)
           
 void setYGap(float value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLayoutInfo

public TreeLayoutInfo()

TreeLayoutInfo

public TreeLayoutInfo(int direction,
                      float levelDistance,
                      float nodeDistance,
                      boolean keepRootPosition,
                      float xGap,
                      float yGap)
Method Detail

getDirection

public int getDirection()
Gets or sets the layout direction.


setDirection

public void setDirection(int value)

getLevelDistance

public float getLevelDistance()
Gets or sets the minimal distance between two adjacent tree levels.


setLevelDistance

public void setLevelDistance(float value)

getNodeDistance

public float getNodeDistance()
Gets or sets the minimal distance between two adjacent nodes in the same level.


setNodeDistance

public void setNodeDistance(float value)

getKeepRootPosition

public boolean getKeepRootPosition()
Gets or sets a flag, indicating whether the layout should preserve the position of the root node.


setKeepRootPosition

public void setKeepRootPosition(boolean value)

getXGap

public float getXGap()
Gets or sets the gap between the leftmost box and the left bound of the document.


setXGap

public void setXGap(float value)

getYGap

public float getYGap()
Gets or sets the gap between the topmost box and the top bound of the document.


setYGap

public void setYGap(float value)

getStretchFactor

public float getStretchFactor()
Gets or sets a value indicating the stretch factor in radial layouts.


setStretchFactor

public void setStretchFactor(float value)

getEnableAssistants

public boolean getEnableAssistants()
Gets a value indicating whether the "assistant" trait is regarded when performing the layout.


setEnableAssistants

public void setEnableAssistants(boolean value)
Sets a value indicating whether the "assistant" trait is regarded when performing the layout.


getCompactAssistants

public boolean getCompactAssistants()
Gets a value indicating whether the "assistant" trait is regarded when performing the layout.

Returns:

setCompactAssistants

public void setCompactAssistants(boolean value)
Sets a value indicating whether the "assistant" trait is regarded when performing the layout.