|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.organic.ShuffleLayouter
This layout stage removes node overlaps in a layout graph by using a method which is based on a famous russian arcade game.
Field Summary | |
static byte |
HOC_INTERSECTION_BOX
|
static byte |
HOC_LESS_MOVEMENT
|
static byte |
HOC_NODE_CENTER
|
static Object |
MINIMAL_DISTANCE_DPKEY
This key can be used to specify a minimal distance for each single node in the graph using a data provider. |
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
ShuffleLayouter()
Creates a new instance of ShuffleLayouter. |
Method Summary | |
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be layed
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Performs the force transfer algorithm on the given graph after the core layouter has performed its job. |
Layouter |
getCoreLayouter()
Returns the core layouter. |
byte |
getHorizontalOverlapCriterium()
|
double |
getMinimalNodeDistance()
Returns the minimal distance between nodes that has to be obeyed by this layouter. |
boolean |
isBarycenterModeActive()
Getter for property barycenterModeActive. |
boolean |
isSimpleModeActive()
Whether or not simple mode is active. |
void |
setBarycenterModeActive(boolean barycenterModeActive)
Setter for property barycenterModeActive. |
void |
setCoreLayouter(Layouter l)
Sets the core layouter. |
void |
setHorizontalOverlapCriterium(byte voc)
|
void |
setMinimalNodeDistance(double d)
Sets the minimal distance between nodes that has to be obeyed by this layouter. |
void |
setSimpleModeActive(boolean s)
Whether or not to activate a simple layout mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Object MINIMAL_DISTANCE_DPKEY
public static final byte HOC_INTERSECTION_BOX
public static final byte HOC_NODE_CENTER
public static final byte HOC_LESS_MOVEMENT
Constructor Detail |
public ShuffleLayouter()
Method Detail |
public void doLayout(LayoutGraph graph)
doLayout
in interface Layouter
public boolean canLayout(LayoutGraph graph)
Layouter
true
iff the given graph can be layed
out by this algorithm. Calling doLayout
with
the given graph as it's argument will only success if
this method returns true
.
canLayout
in interface Layouter
public void setCoreLayouter(Layouter l)
setCoreLayouter
in interface LayoutStage
public Layouter getCoreLayouter()
getCoreLayouter
in interface LayoutStage
public void setHorizontalOverlapCriterium(byte voc)
public byte getHorizontalOverlapCriterium()
public void setMinimalNodeDistance(double d)
public double getMinimalNodeDistance()
public void setSimpleModeActive(boolean s)
By default simple mode is not active.
public boolean isSimpleModeActive()
ShuffleLayouter.setSimpleModeActive(boolean)
public boolean isBarycenterModeActive()
public void setBarycenterModeActive(boolean barycenterModeActive)
barycenterModeActive
- New value of property barycenterModeActive.
|
© 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 |