public class AnnealLayoutBuilder
extends java.lang.Object
AnnealLayout
objects.Constructor and Description |
---|
AnnealLayoutBuilder()
Initializes a new instance of the
AnnealLayoutBuilder class. |
AnnealLayoutBuilder(AnnealLayout instance)
Initializes a new instance of the
AnnealLayoutBuilder class. |
Modifier and Type | Method and Description |
---|---|
AnnealLayoutBuilder |
anchoring(Anchoring value)
Sets a value specifying how links will be aligned to the anchor points of nodes.
|
AnnealLayoutBuilder |
boundaryFactor(double value)
Sets a value indicating how important the distance from nodes to the layout area
boundaries is relatively to the other criteria considered by the algorithm.
|
AnnealLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
AnnealLayoutBuilder |
crossingLinksCost(double value)
Sets a value specifying how important the low number of link crossings
is relatively to the other criteria considered by the algorithm.
|
AnnealLayoutBuilder |
distributionFactor(double value)
Sets a value indicating the importance of node distribution relatively
to the other criteria considered by the algorithm.
|
AnnealLayout |
get()
Returns an existing object passed for initialization to this builder.
|
AnnealLayoutBuilder |
initialTemperature(double value)
Sets the initial temperature of the simulated annealing process.
|
AnnealLayoutBuilder |
iterationsPerStage(int value)
Sets how many node shift iterations to perform at each stage of the algorithm.
|
AnnealLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each
Group
of nodes as a single vertex in the arranged graph. |
AnnealLayoutBuilder |
layoutArea(java.awt.geom.Rectangle2D.Float value)
Sets the size of the layout area.
|
AnnealLayoutBuilder |
linkLengthFactor(double value)
Sets a value specifying how important the short length of links is
relatively to the other criteria considered by the algorithm.
|
AnnealLayoutBuilder |
multipleGraphsOrientation(MultipleGraphsPlacement value)
How multiple independent graphs in the diagram should be positioned relative to
one another.
|
AnnealLayoutBuilder |
nodeLinkCrossingCost(double value)
Sets a value specifying how important the low number of crossings of links with edges
is relatively to the other criteria considered by the algorithm.
|
AnnealLayoutBuilder |
nodeLinkDistFactor(double value)
Sets a value specifying the importance of the distance between nodes and links
relative to the other criteria considered by the algorithm.
|
AnnealLayoutBuilder |
precision(double value)
Sets the cost calculations precision.
|
AnnealLayoutBuilder |
randomize(boolean value)
Sets a value indicating whether the nodes should be placed
at random positions when the layout routine starts.
|
AnnealLayoutBuilder |
root(DiagramNode value)
Sets the diagram node that specifies which
connected graph in the diagram should be arranged.
|
AnnealLayoutBuilder |
splitGraph(boolean value)
Whether unconnected sub-graphs should be laid out independently from each other.
|
AnnealLayoutBuilder |
stages(int value)
Sets how many cooling stages the algorithm should simulate.
|
AnnealLayoutBuilder |
temperatureScale(double value)
Sets how much the simulated temperature is decreased at each stage of the algorithm.
|
AnnealLayoutBuilder |
widthHeightRatio(float value)
Sets what width / height ratio the layout area should have.
|
public AnnealLayoutBuilder()
AnnealLayoutBuilder
class.public AnnealLayoutBuilder(AnnealLayout instance)
AnnealLayoutBuilder
class.public AnnealLayoutBuilder anchoring(Anchoring value)
value
- A member of the Anchoring
enumeration.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder boundaryFactor(double value)
value
- A multiplier applied to the node-to-boundary distance cost when evaluating
the total cost of a graph configuration. The default is 3000.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder crossingLinksCost(double value)
value
- A value added to the total cost of a graph configuration
for each pair of crossing links. The default is 100000.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder distributionFactor(double value)
value
- A multiplier applied to the node distribution cost when evaluating
the total cost of a graph configuration. The default is 40000.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder initialTemperature(double value)
value
- A double value specifying the initial temperature of the simulated process.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder iterationsPerStage(int value)
value
- An integer value specifying the number of iterations. The default is 50AnnealLayoutBuilder
instance.public AnnealLayoutBuilder keepGroupLayout(boolean value)
Group
of nodes as a single vertex in the arranged graph.value
- true
if groups must be treated as single graph vertices,
otherwise false
AnnealLayoutBuilder
instance.public AnnealLayoutBuilder layoutArea(java.awt.geom.Rectangle2D.Float value)
value
- The layout area coordinates.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder linkLengthFactor(double value)
value
- A multiplier applied to the link length cost when evaluating
the total cost of a graph configuration. The default is 0.25.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder multipleGraphsOrientation(MultipleGraphsPlacement value)
AnnealLayoutBuilder
instance.public AnnealLayoutBuilder nodeLinkCrossingCost(double value)
nodeLinkCrossingCost
- A value added to the total cost of a graph configuration
for each crossing of link and node. The default is 100000.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder nodeLinkDistFactor(double value)
value
- A multiplier applied to the node-to-link distance cost when evaluating
the total cost of a graph configuration. The default is 20000.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder precision(double value)
AnnealLayoutBuilder
instance.public AnnealLayoutBuilder randomize(boolean value)
AnnealLayoutBuilder
instance.public AnnealLayoutBuilder root(DiagramNode value)
value
- A DiagramNode
object whose containing graph will be arranged.AnnealLayoutBuilder
instance.public AnnealLayoutBuilder splitGraph(boolean value)
AnnealLayoutBuilder
instance.public AnnealLayoutBuilder stages(int value)
value
- The number of cooling stagesAnnealLayoutBuilder
instance.public AnnealLayoutBuilder temperatureScale(double value)
value
- A multiplier applied to the current temperature at the end of each
cooling stage. The default value is 0.75AnnealLayoutBuilder
instance.public AnnealLayoutBuilder widthHeightRatio(float value)
AnnealLayoutBuilder
instance.public AnnealLayout create()
public AnnealLayout get()