de.saar.chorus.jgraph
Class ImprovedJGraphLayout
Object
JGraphLayoutAlgorithm
ImprovedJGraphLayout
- Direct Known Subclasses:
- DomGraphLayout, GecodeTreeLayout
public abstract class ImprovedJGraphLayout
- extends JGraphLayoutAlgorithm
Method Summary |
abstract void |
addRelXtoParent(DefaultGraphCell node,
Integer x)
|
abstract void |
addRelXtoRoot(DefaultGraphCell node,
Integer x)
|
abstract void |
addRelYpos(DefaultGraphCell node,
Integer y)
|
abstract Shape |
getNodesToShape(DefaultGraphCell node)
|
abstract int |
getNodeWidth(DefaultGraphCell node)
Returns the node with computed by the JDomGraph . |
abstract Integer |
getRelXtoParent(DefaultGraphCell node)
|
abstract void |
putNodeToShape(DefaultGraphCell node,
Shape shape)
|
abstract 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 |
ImprovedJGraphLayout
public ImprovedJGraphLayout()
run
public abstract void run(JGraph gr,
Object[] cells,
int arg2)
- Starts the layout algorithm.
- Specified by:
run
in class JGraphLayoutAlgorithm
getRelXtoParent
public abstract Integer getRelXtoParent(DefaultGraphCell node)
addRelXtoParent
public abstract void addRelXtoParent(DefaultGraphCell node,
Integer x)
addRelXtoRoot
public abstract void addRelXtoRoot(DefaultGraphCell node,
Integer x)
addRelYpos
public abstract void addRelYpos(DefaultGraphCell node,
Integer y)
getNodeWidth
public abstract int getNodeWidth(DefaultGraphCell node)
- Returns the node with computed by the
JDomGraph
.
- Parameters:
node
- the node to compute the width for
- Returns:
- the width
getNodesToShape
public abstract Shape getNodesToShape(DefaultGraphCell node)
putNodeToShape
public abstract void putNodeToShape(DefaultGraphCell node,
Shape shape)