public class TreeLayout extends Object
Constructor and Description |
---|
TreeLayout(LTree tree)
Creates instance of layout algorithm.
|
TreeLayout(LTree tree,
int orientation,
double dspace,
double bspace,
double tspace)
Creates instance of layout algorithm.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout(int cameraIndex)
Layout all elements of the LTree.
|
double |
getBreadthSpacing() |
double |
getDepthSpacing() |
Point2D |
getLayoutAnchor()
Get anchor of the tree in virtual space (position of the root element)
|
int |
getOrientation() |
double |
getSubtreeSpacing() |
void |
setBreadthSpacing(double b) |
void |
setDepthSpacing(double d) |
void |
setLayoutAnchor(Point2D a)
Set layout anchor - position of the root element.
|
void |
setOrientation(int orientation) |
void |
setSubtreeSpacing(double s) |
public TreeLayout(LTree tree)
tree
- LTree instance to be laid out.public TreeLayout(LTree tree, int orientation, double dspace, double bspace, double tspace)
tree
- LTree instance to be laid out.orientation
- Orientation is one of the TreeOrientation constants.dspace
- the spacing between depth levelsbspace
- the spacing between sibling childrentspace
- the spacing between subtreesTreeOrientation
public void setOrientation(int orientation)
public int getOrientation()
public void setDepthSpacing(double d)
public double getDepthSpacing()
public void setBreadthSpacing(double b)
public double getBreadthSpacing()
public void setSubtreeSpacing(double s)
public double getSubtreeSpacing()
public Point2D getLayoutAnchor()
public void setLayoutAnchor(Point2D a)
a
- Point in virtual spaceCopyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.