|
Search this API | ||||||||
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
public class 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 mesh-like 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()
Returns the current laxity value. |
int |
getPreferredEdgeLength()
returns the desired edge length |
int |
getRounds()
returns the number of the initial rounds |
boolean |
isDeterministic()
Returns whether or not GRIP works in a deterministic manner. |
boolean |
isNodeSizeAware()
Returns whether or not GRIP takes average node sizes into account. |
boolean |
isSmartInitialPlacement()
Returns whether or not initial placements are determined in a smart way. |
void |
setDeterministic(boolean deterministic)
Specifies whether or not GRIP works in a deterministic manner. |
void |
setFinalRounds(int FinalRounds)
Sets the number of Fruchtermann Reingold rounds (final) |
void |
setInitialTemperature(int tInit)
Sets the initial temperature for each round. |
void |
setLaxity(double laxity)
Specifies the current laxity value. |
void |
setNodeSizeAware(boolean nodeSizeAware)
Specifies whether or not GRIP takes average node sizes into account. |
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)
Specifies whether or not initial placements are determined in a smart way. |
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)
public boolean isDeterministic()
public void setDeterministic(boolean deterministic)
public double getLaxity()
public void setLaxity(double laxity)
laxity
- the current laxity value.public boolean isNodeSizeAware()
public void setNodeSizeAware(boolean nodeSizeAware)
nodeSizeAware
- if true
, the algorithm is
aware of the average node size and takes it into account.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |