|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.CanonicMultiStageLayouter | +--y.layout.organic.GRIP
This class implements a variant of the GRIP algorithm by P. Gajer and SG Kobourov: "Graph Drawing with Intelligent Placement". It implements ideas of the GUIDE algorithm, and fixes some bugs from the original algorithm and implementation. Additionally several important parts of the algorithm have been drastically improved. This layout is especially suited for huge diagrams, that would normally be laid out using an Organic layout. It leads to perfect results for meshlike graph structures.
Field Summary |
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
GRIP()
Creates a new instance of the GRIP layout algorithm |
Method Summary | |
boolean |
canLayoutCore(LayoutGraph g)
Subclasses have to provide information whether or not they can layout the given graph. |
void |
doLayoutCore(LayoutGraph g)
Subclasses have to provide core layout code in this method. |
int |
getFinalRounds()
returns the number of the final rounds |
int |
getInitialTemperature()
returns the initial temperature |
double |
getLaxity()
Getter for property laxity. |
int |
getPreferredEdgeLength()
returns the desired edge length |
int |
getRounds()
returns the number of the initial rounds |
boolean |
isDeterministic()
Getter for property deterministic. |
boolean |
isNodeSizeAware()
Getter for property nodeSizeAware. |
boolean |
isSmartInitialPlacement()
Getter for property smartInitialPlacement. |
void |
setDeterministic(boolean deterministic)
Setter for property deterministic. |
void |
setFinalRounds(int FinalRounds)
Sets the number of Fruchtermann Reingold rounds (final) |
void |
setInitialTemperature(int tInit)
Sets the inital temperature for each round. |
void |
setLaxity(double laxity)
Setter for property laxity. |
void |
setNodeSizeAware(boolean nodeSizeAware)
Setter for property nodeSizeAware. |
void |
setPreferredEdgeLength(int EdgeLength)
sets the desired edge length |
void |
setRounds(int Rounds)
Sets the number of Kamada Kawai rounds (initial) |
void |
setSmartInitialPlacement(boolean smartInitialPlacement)
Setter for property smartInitialPlacement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GRIP()
Method Detail |
public boolean canLayoutCore(LayoutGraph g)
CanonicMultiStageLayouter
canLayoutCore
in class CanonicMultiStageLayouter
public void setRounds(int Rounds)
Rounds
- the number of roundspublic void setFinalRounds(int FinalRounds)
FinalRounds
- the numberpublic void setPreferredEdgeLength(int EdgeLength)
EdgeLength
- the length in world coordinatespublic void setInitialTemperature(int tInit)
tInit
- the initial temperaturepublic int getRounds()
public int getFinalRounds()
public int getPreferredEdgeLength()
public int getInitialTemperature()
public void doLayoutCore(LayoutGraph g)
CanonicMultiStageLayouter
doLayoutCore
in class CanonicMultiStageLayouter
public boolean isSmartInitialPlacement()
public void setSmartInitialPlacement(boolean smartInitialPlacement)
smartInitialPlacement
- New value of property smartInitialPlacement.public boolean isDeterministic()
public void setDeterministic(boolean deterministic)
deterministic
- New value of property deterministic.public double getLaxity()
public void setLaxity(double laxity)
laxity
- New value of property laxity.public boolean isNodeSizeAware()
public void setNodeSizeAware(boolean nodeSizeAware)
nodeSizeAware
- New value of property nodeSizeAware.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |