|
||||||||||
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.SmartOrganicLayouter
This class can be used as a convenience class to gain access to a variety of organic layout algorithms. Its strength lies in being able to conveniently specify a ratio between quality and running time, as well as the ability to specify the degree of the compactness of the drawing and to guarantee non-overlapping nodes.
Field Summary | |
static Object |
NODE_SUBSET_DATA
The data provider key for specifying the node subset to be laid out |
static Object |
PREFERRED_EDGE_LENGTH_DATA
The data provider key for specifying the preferred edge lengths for each edge |
static byte |
SCOPE_ALL
scope constant - used for layouting all nodes |
static byte |
SCOPE_MAINLY_SUBSET
scope constant - used for layouting mainly the subset of the nodes |
static byte |
SCOPE_SUBSET
scope constant - used for layouting the subset of the nodes only |
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
SmartOrganicLayouter()
Creates a new instance of SmartOrganicLayouter |
Method Summary | |
protected boolean |
canLayoutCore(LayoutGraph graph)
Subclasses have to provide information whether or not they can layout the given graph. |
protected void |
doLayoutCore(LayoutGraph graph)
Subclasses have to provide core layout code in this method. |
double |
getCompactness()
Getter for property compactness. |
long |
getMaximumDuration()
Getter for property maximumDuration. |
double |
getMinimalNodeDistance()
Getter for property minimalNodeDistance. |
double |
getPreferredEdgeLength()
Getter for property preferredEdgeLength. |
double |
getPreferredMinimalNodeDistance()
Getter for property preferredMinimalNodeDistance. |
double |
getQualityTimeRatio()
Getter for property qualityTimeRatio. |
byte |
getScope()
Getter for property scope. |
boolean |
isDeterministic()
Getter for property deterministic. |
boolean |
isNodeOverlapsAllowed()
Getter for property nodeOverlapsAllowed. |
boolean |
isNodeSizeAware()
Getter for property nodeSizeAware. |
void |
setCompactness(double compactness)
Setter for property compactness. |
void |
setDeterministic(boolean deterministic)
Setter for property deterministic. |
void |
setMaximumDuration(long maximumDurationMillis)
Setter for property maximumDuration. |
void |
setMinimalNodeDistance(double minimalNodeDistance)
Setter for property minimalNodeDistance. |
void |
setNodeOverlapsAllowed(boolean nodeOverlapsAllowed)
Setter for property nodeOverlapsAllowed. |
void |
setNodeSizeAware(boolean nodeSizeAware)
Setter for property nodeSizeAware. |
void |
setPreferredEdgeLength(double preferredEdgeLength)
Setter for property preferredEdgeLength. |
void |
setPreferredMinimalNodeDistance(double preferredMinimalNodeDistance)
Setter for property preferredMinimalNodeDistance. |
void |
setQualityTimeRatio(double qualityTimeRatio)
Setter for property qualityTimeRatio. |
void |
setScope(byte scope)
Setter for property scope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte SCOPE_ALL
public static final byte SCOPE_SUBSET
public static final byte SCOPE_MAINLY_SUBSET
public static final Object NODE_SUBSET_DATA
public static final Object PREFERRED_EDGE_LENGTH_DATA
Constructor Detail |
public SmartOrganicLayouter()
Method Detail |
protected boolean canLayoutCore(LayoutGraph graph)
canLayoutCore
in class CanonicMultiStageLayouter
protected void doLayoutCore(LayoutGraph graph)
doLayoutCore
in class CanonicMultiStageLayouter
public double getQualityTimeRatio()
public void setQualityTimeRatio(double qualityTimeRatio)
qualityTimeRatio
- a value between 0.0 (low quality, fast)
and 1.0 (high quality, slow)public long getMaximumDuration()
public void setMaximumDuration(long maximumDurationMillis)
maximumDurationMillis
- New value of property maximumDuration.public byte getScope()
public void setScope(byte scope)
scope
- New value of property scope.public double getCompactness()
public void setCompactness(double compactness)
compactness
- New value of property compactness.public double getPreferredEdgeLength()
public void setPreferredEdgeLength(double preferredEdgeLength)
preferredEdgeLength
- New value of property preferredEdgeLength.public double getPreferredMinimalNodeDistance()
public void setPreferredMinimalNodeDistance(double preferredMinimalNodeDistance)
preferredMinimalNodeDistance
- New value of property preferredMinimalNodeDistance.public boolean isNodeSizeAware()
public void setNodeSizeAware(boolean nodeSizeAware)
nodeSizeAware
- New value of property nodeSizeAware.public boolean isDeterministic()
public void setDeterministic(boolean deterministic)
deterministic
- New value of property deterministic.public double getMinimalNodeDistance()
public void setMinimalNodeDistance(double minimalNodeDistance)
minimalNodeDistance
- New value of property minimalNodeDistance.public boolean isNodeOverlapsAllowed()
public void setNodeOverlapsAllowed(boolean nodeOverlapsAllowed)
nodeOverlapsAllowed
- New value of property nodeOverlapsAllowed.
|
© 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 |