|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectJGraphLayoutAlgorithm
ImprovedJGraphLayout
GecodeTreeLayout
public class GecodeTreeLayout
A layout algorithm for a solved form of a dominance graph
represented by a JDomGraph. This tree layout
uses the GECODE tree layout classes.
| Constructor Summary | |
|---|---|
GecodeTreeLayout(ImprovedJGraph gr)
Initializes a new SolvedFormLayout with the
given JDomGraph. |
|
GecodeTreeLayout(ImprovedJGraph gr,
int offset)
Initializes a new SolvedFormLayout with the
given JDomGraph. |
|
| Method Summary | |
|---|---|
void |
addRelXtoParent(DefaultGraphCell node,
Integer x)
|
void |
addRelXtoRoot(DefaultGraphCell node,
Integer x)
|
void |
addRelYpos(DefaultGraphCell node,
Integer y)
|
Shape |
getNodesToShape(DefaultGraphCell node)
|
int |
getNodeWidth(DefaultGraphCell node)
Returns the node width computed by the JDomGraph. |
Integer |
getRelXtoParent(DefaultGraphCell node)
|
void |
putNodeToShape(DefaultGraphCell node,
Shape shape)
|
void |
run(JGraph gr,
Object[] cells,
int arg2)
Starts the layout algorithm. |
| Methods inherited from class JGraphLayoutAlgorithm |
|---|
createDialog, createDialog, createSettings, getHint, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, run, setAllowedToRun, setMaximumProgress, setProgress |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GecodeTreeLayout(ImprovedJGraph gr)
SolvedFormLayout with the
given JDomGraph.
gr - the solved form as JDomGraph to layout
public GecodeTreeLayout(ImprovedJGraph gr,
int offset)
SolvedFormLayout with the
given JDomGraph.
gr - the solved form as JDomGraph to layout| Method Detail |
|---|
public void run(JGraph gr,
Object[] cells,
int arg2)
run in class ImprovedJGraphLayoutpublic Integer getRelXtoParent(DefaultGraphCell node)
getRelXtoParent in class ImprovedJGraphLayout
public void addRelXtoParent(DefaultGraphCell node,
Integer x)
addRelXtoParent in class ImprovedJGraphLayout
public void addRelXtoRoot(DefaultGraphCell node,
Integer x)
addRelXtoRoot in class ImprovedJGraphLayout
public void addRelYpos(DefaultGraphCell node,
Integer y)
addRelYpos in class ImprovedJGraphLayoutpublic int getNodeWidth(DefaultGraphCell node)
JDomGraph.
getNodeWidth in class ImprovedJGraphLayoutnode - the node to compute the width for
public Shape getNodesToShape(DefaultGraphCell node)
getNodesToShape in class ImprovedJGraphLayout
public void putNodeToShape(DefaultGraphCell node,
Shape shape)
putNodeToShape in class ImprovedJGraphLayout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||