|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.hierarchic.AsIsLayerer
public class AsIsLayerer
This layerer implementation assigns layers by analyzing already existing node coordinates. Nodes whose bounding boxes intersect a common y-coordinate are assigned to the same layer.

| Constructor Summary | |
|---|---|
AsIsLayerer()
|
|
| Method Summary | |
|---|---|
int |
assignNodeLayer(LayoutGraph g,
NodeMap layerMap,
EdgeList reversedEdges)
This method assigns the nodes in the graph to layers. |
double |
getHalo()
Gets the size of the halo around a node or the insets respectively that are used to calculate layer overlaps. |
protected double |
getMax(LayoutGraph graph,
Node node)
Callback used to calculate the lower (max) value of a node. |
double |
getMaximumNodeSize()
Gets the maximum size of a node that is used to calculate layer overlaps. |
protected double |
getMin(LayoutGraph graph,
Node node)
Callback used to calculate the upper (min) value of a node. |
double |
getMinimumNodeSize()
Gets the minimum size of a node that is used to calculate layer overlaps. |
double |
getNodeScalingFactor()
Gets the scaling factor that is used to scale the nodes' height. |
void |
setMaximumNodeSize(double max)
Sets the maximum size of a node that is used to calculate layer overlaps. |
void |
setMinimumNodeSize(double min)
Sets the minimum size of a node that is used to calculate layer overlaps. |
void |
setNodeHalo(double halo)
Sets the size of the halo around a node or the insets respectively that are used to calculate layer overlaps. |
void |
setNodeScalingFactor(double factor)
Sets the scaling factor that is used to scale the nodes' height. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsIsLayerer()
| Method Detail |
|---|
public double getNodeScalingFactor()
1.0d which results in no scaling.
public void setNodeScalingFactor(double factor)
factor - the new scaling factor [0.0d .. Double.MAX_VALUE]public double getMaximumNodeSize()
Double.MAX_VALUE which results in no
restriction being set.
setNodeScalingFactor(double),
setNodeHalo(double)public void setMaximumNodeSize(double max)
max - the maximum size of a node [0.0d .. Double.MAX_VALUE]setNodeScalingFactor(double),
setNodeHalo(double)public double getMinimumNodeSize()
0.0d which results in no
restriction being set.
setNodeScalingFactor(double),
setNodeHalo(double)public void setMinimumNodeSize(double min)
min - the minimum size of a node [0.0d .. Double.MAX_VALUE]setNodeScalingFactor(double),
setNodeHalo(double)public void setNodeHalo(double halo)
halo - the size of a node's halo [-Double.MAX_VALUE .. Double.MAX_VALUE]public double getHalo()
0.0d which results in no modification
[0.0d .. Double.MAX_VALUE]
public int assignNodeLayer(LayoutGraph g,
NodeMap layerMap,
EdgeList reversedEdges)
Layerer
assignNodeLayer in interface Layererg - the graph for which the layers are determined.layerMap - here the layers are storedreversedEdges - here the edges are stored which had been reversed.
protected double getMin(LayoutGraph graph,
Node node)
protected double getMax(LayoutGraph graph,
Node node)
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||