|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.organic.ShuffleLayouter
public class 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 Object |
FIXED_NODE_DPKEY
This key can be used to specify a minimal distance for each single node in the graph using a data provider. |
static byte |
HOC_INTERSECTION_BOX
Horizontal overlap criteria enumeration constant. |
static byte |
HOC_LESS_MOVEMENT
Horizontal overlap criteria enumeration constant. |
static byte |
HOC_NODE_CENTER
Horizontal overlap criteria enumeration constant. |
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 laid
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()
Gets the horizontal overlap criterion. |
double |
getMinimalNodeDistance()
Returns the minimal distance between nodes that has to be obeyed by this layouter. |
boolean |
isBarycenterModeActive()
Returns true if this layouter uses a barycenter based
node shuffling strategy and false otherwise. |
boolean |
isSimpleModeActive()
Returns whether or not simple mode is active. |
void |
setBarycenterModeActive(boolean barycenterModeActive)
Specifies whether or not this layouter should use a barycenter based node shuffling strategy. |
void |
setCoreLayouter(Layouter l)
Sets the core layouter. |
void |
setHorizontalOverlapCriterium(byte hoc)
Sets the horizontal overlap criterion. |
void |
setMinimalNodeDistance(double d)
Sets the minimal distance between nodes that has to be obeyed by this layouter. |
void |
setSimpleModeActive(boolean s)
Specifies 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 Object FIXED_NODE_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 laid
out by this algorithm. Calling doLayout
with
the given graph as its 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 hoc)
HOC_INTERSECTION_BOX
,
HOC_LESS_MOVEMENT
and
HOC_NODE_CENTER
public byte getHorizontalOverlapCriterium()
HOC_INTERSECTION_BOX
,
HOC_LESS_MOVEMENT
and
HOC_NODE_CENTER
public void setMinimalNodeDistance(double d)
public double getMinimalNodeDistance()
public void setSimpleModeActive(boolean s)
public boolean isSimpleModeActive()
setSimpleModeActive(boolean)
public boolean isBarycenterModeActive()
true
if this layouter uses a barycenter based
node shuffling strategy and false
otherwise.
public void setBarycenterModeActive(boolean barycenterModeActive)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |