public class TreeLayoutAlgorithm extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
BORDER |
static Object |
CELL_WRAPPER
layout,attachParent,layoutLeaf,join,merge,offset and bridge methods below
were taken line by line from Moen's algorithm.
|
protected int |
childParentDistance |
static int |
DEFAULT_ORIENTATION |
static int |
LEFT_TO_RIGHT |
protected int |
orientation |
static int |
UP_TO_DOWN |
コンストラクタと説明 |
---|
TreeLayoutAlgorithm(int orientation,
int distance,
int border) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
attachParent(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t,
int h) |
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine |
bridge(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine line1,
int x1,
int y1,
net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine line2,
int x2,
int y2) |
protected void |
buildLayoutHelperTree(Collection roots) |
protected void |
decorateNode(org.jgraph.graph.VertexView node) |
protected void |
display(Collection roots) |
protected void |
displayHelper(org.jgraph.graph.VertexView view) |
protected List |
getChildren(org.jgraph.graph.VertexView node) |
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode |
getTreeLayoutNode(org.jgraph.graph.VertexView view) |
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode |
getTreeLayoutNode(org.jgraph.graph.VertexView view,
boolean createIfNotPresent) |
protected int |
join(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t) |
protected void |
layout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t,
Set nodeSet) |
protected void |
layoutLeaf(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t) |
protected void |
layoutTrees(Collection roots) |
protected void |
leftRightNodeLayout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode node,
int off_x,
int off_y) |
protected int |
merge(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.Polygon c1,
net.sourceforge.mr3.layout.TreeLayoutAlgorithm.Polygon c2) |
protected int |
offset(int p1,
int p2,
int a1,
int a2,
int b1,
int b2) |
void |
perform(org.jgraph.JGraph jgraph,
Object[] selectedCells) |
void |
setChildParentDistance(int distance) |
void |
setLayoutOrientation(int orientation) |
protected void |
upDownNodeLayout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode node,
int off_x,
int off_y) |
public static final Object CELL_WRAPPER
public static final int LEFT_TO_RIGHT
public static final int UP_TO_DOWN
public static final int DEFAULT_ORIENTATION
protected int orientation
protected int childParentDistance
protected int BORDER
public TreeLayoutAlgorithm(int orientation, int distance, int border)
public void setLayoutOrientation(int orientation)
public void setChildParentDistance(int distance)
protected void layout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t, Set nodeSet)
protected void attachParent(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t, int h)
protected void layoutLeaf(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t)
protected int join(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode t)
protected int merge(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.Polygon c1, net.sourceforge.mr3.layout.TreeLayoutAlgorithm.Polygon c2)
protected int offset(int p1, int p2, int a1, int a2, int b1, int b2)
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine bridge(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine line1, int x1, int y1, net.sourceforge.mr3.layout.TreeLayoutAlgorithm.PolyLine line2, int x2, int y2)
protected void leftRightNodeLayout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode node, int off_x, int off_y)
protected void upDownNodeLayout(net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode node, int off_x, int off_y)
public void perform(org.jgraph.JGraph jgraph, Object[] selectedCells)
protected List getChildren(org.jgraph.graph.VertexView node)
protected void layoutTrees(Collection roots)
protected void buildLayoutHelperTree(Collection roots)
protected void decorateNode(org.jgraph.graph.VertexView node)
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode getTreeLayoutNode(org.jgraph.graph.VertexView view)
protected net.sourceforge.mr3.layout.TreeLayoutAlgorithm.TreeLayoutNode getTreeLayoutNode(org.jgraph.graph.VertexView view, boolean createIfNotPresent)
protected void display(Collection roots)
protected void displayHelper(org.jgraph.graph.VertexView view)
Copyright © 2003–2015 mr3.sourceforge.net. All rights reserved.