public class TreeLayoutBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TreeLayoutBuilder.EdgeRouting |
static class |
TreeLayoutBuilder.Type |
Modifier and Type | Field and Description |
---|---|
static int |
BORDER |
static java.lang.String |
EDGEROUTING |
static int |
EVENTHEIGHT |
static int |
EVENTWIDTH |
static int |
LEAFHEIGHT |
static int |
LEAFWIDTH |
static int |
OPERATORHEIGHT |
static int |
OPERATORWIDTH |
static double |
SPLINEPOINTFRACTION |
Constructor and Description |
---|
TreeLayoutBuilder(NAryTree tree) |
TreeLayoutBuilder(NAryTree tree,
org.deckfour.xes.classification.XEventClasses classes) |
Modifier and Type | Method and Description |
---|---|
void |
buildLayout() |
protected void |
drawEdge(org.jgraph.graph.GraphLayoutCache g,
org.jgraph.graph.DefaultPort from,
java.awt.geom.Point2D fromPoint,
org.jgraph.graph.DefaultPort to,
java.awt.geom.Point2D toPoint,
TreeLayoutBuilder.EdgeRouting startHorizontal) |
protected org.jgraph.graph.DefaultPort[] |
drawNode(org.jgraph.graph.GraphLayoutCache g,
int node) |
protected org.jgraph.graph.DefaultPort[] |
drawNodeLeaf(org.jgraph.graph.GraphLayoutCache g,
int node) |
protected org.jgraph.graph.DefaultPort[] |
drawNodeLoop(org.jgraph.graph.GraphLayoutCache g,
int loopNode) |
protected org.jgraph.graph.DefaultPort[] |
drawNodeOther(org.jgraph.graph.GraphLayoutCache g,
int node) |
protected org.jgraph.graph.DefaultPort[] |
drawNodeSeq(org.jgraph.graph.GraphLayoutCache g,
int node) |
protected org.jgraph.graph.DefaultPort |
drawOperator(org.jgraph.graph.GraphLayoutCache g,
int x,
int y,
TreeLayoutBuilder.Type type) |
protected java.awt.Dimension |
getDimension(int node) |
org.jgraph.JGraph |
getJGraph() |
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim |
getSizeLeaf(int seqNode,
boolean left2right) |
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim |
getSizeLoop(int loopNode,
boolean left2right) |
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim |
getSizeOfNode(int node,
boolean left2right) |
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim |
getSizeOther(int otherNode,
boolean left2right) |
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim |
getSizeSeq(int seqNode,
boolean left2right) |
static void |
main(java.lang.String[] args) |
protected void |
setLocation(int node,
int x,
int y) |
protected void |
setLocationLeaf(int leafNode,
int x,
int y) |
protected void |
setLocationLoop(int loopNode,
int x,
int y) |
protected void |
setLocationOther(int otherNode,
int x,
int y) |
protected void |
setLocationSeq(int seqNode,
int x,
int y) |
public static final int LEAFHEIGHT
public static final int LEAFWIDTH
public static final int OPERATORHEIGHT
public static final int OPERATORWIDTH
public static final int EVENTWIDTH
public static final int EVENTHEIGHT
public static final int BORDER
public static final double SPLINEPOINTFRACTION
public static final java.lang.String EDGEROUTING
public TreeLayoutBuilder(NAryTree tree)
public TreeLayoutBuilder(NAryTree tree, org.deckfour.xes.classification.XEventClasses classes)
public void buildLayout()
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim getSizeOfNode(int node, boolean left2right)
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim getSizeSeq(int seqNode, boolean left2right)
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim getSizeOther(int otherNode, boolean left2right)
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim getSizeLeaf(int seqNode, boolean left2right)
protected org.processmining.plugins.etm.model.narytree.visualisation.TreeLayoutBuilder.Dim getSizeLoop(int loopNode, boolean left2right)
protected void setLocation(int node, int x, int y)
protected void setLocationLeaf(int leafNode, int x, int y)
protected void setLocationLoop(int loopNode, int x, int y)
protected void setLocationSeq(int seqNode, int x, int y)
protected void setLocationOther(int otherNode, int x, int y)
public org.jgraph.JGraph getJGraph()
protected org.jgraph.graph.DefaultPort[] drawNode(org.jgraph.graph.GraphLayoutCache g, int node)
protected org.jgraph.graph.DefaultPort[] drawNodeOther(org.jgraph.graph.GraphLayoutCache g, int node)
protected org.jgraph.graph.DefaultPort[] drawNodeLeaf(org.jgraph.graph.GraphLayoutCache g, int node)
protected org.jgraph.graph.DefaultPort[] drawNodeLoop(org.jgraph.graph.GraphLayoutCache g, int loopNode)
protected org.jgraph.graph.DefaultPort drawOperator(org.jgraph.graph.GraphLayoutCache g, int x, int y, TreeLayoutBuilder.Type type)
protected void drawEdge(org.jgraph.graph.GraphLayoutCache g, org.jgraph.graph.DefaultPort from, java.awt.geom.Point2D fromPoint, org.jgraph.graph.DefaultPort to, java.awt.geom.Point2D toPoint, TreeLayoutBuilder.EdgeRouting startHorizontal)
protected org.jgraph.graph.DefaultPort[] drawNodeSeq(org.jgraph.graph.GraphLayoutCache g, int node)
public static void main(java.lang.String[] args)
protected java.awt.Dimension getDimension(int node)