public class AnnealLayoutInfo
extends java.lang.Object
Constructor and Description |
---|
AnnealLayoutInfo() |
Modifier and Type | Method and Description |
---|---|
double |
getBoundaryFactor()
Gets a value indicating how important the distance from nodes to the layout area
boundaries is relatively to the other criteria considered by the algorithm.
|
double |
getCrossingEdgesCost()
Gets a value specifying how important the low number of link crossings
is relatively to the other criteria considered by the algorithm.
|
double |
getDistributionFactor()
Gets a value indicating the importance of node distribution relatively
to the other criteria considered by the algorithm.
|
double |
getEdgeLengthFactor()
Gets a value specifying how important the short length of links is
relatively to the other criteria considered by the algorithm.
|
int |
getIterationsPerStage()
Gets how many node shift iterations to perform at each stage of the algorithm.
|
android.graphics.RectF |
getLayoutArea()
Gets the size of the layout area.
|
double |
getNodeEdgeCrossingCost()
Gets a value specifying how important the low number of crossings of links and nodes
is relatively to the other criteria considered by the algorithm.
|
double |
getNodeEdgeDistFactor()
Gets a value specifying the importance of the distance between nodes and links
relative to the other criteria considered by the algorithm.
|
double |
getPrecision()
Gets the cost calculations precision.
|
boolean |
getRandomize()
Gets a value indicating whether the nodes should be placed
at random positions when the layout routine starts.
|
int |
getStages()
Gets how many cooling stages the algorithm should simulate.
|
double |
getTemperature()
Gets the initial temperature of the simulated annealing process.
|
double |
getTemperatureScale()
Gets how much the simulated temperature is decreased at each stage of the algorithm.
|
double |
getWidthHeightRatio()
Gets what width / height ratio the layout area should have.
|
void |
setBoundaryFactor(double boundaryFactor)
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.
|
void |
setCrossingEdgesCost(double crossingEdgesCost)
Sets a value specifying how important the low number of link crossings
is relatively to the other criteria considered by the algorithm.
|
void |
setDistributionFactor(double distributionFactor)
Sets a value indicating the importance of node distribution relatively
to the other criteria considered by the algorithm.
|
void |
setEdgeLengthFactor(double edgeLengthFactor)
Sets a value specifying how important the short length of links is
relatively to the other criteria considered by the algorithm.
|
void |
setIterationsPerStage(int iterationsPerStage)
Sets how many node shift iterations to perform at each stage of the algorithm.
|
void |
setLayoutArea(android.graphics.RectF layoutArea)
Sets the size of the layout area.
|
void |
setNodeEdgeCrossingCost(double nodeEdgeCrossingCost)
Sets a value specifying how important the low number of crossings of links and nodes
is relatively to the other criteria considered by the algorithm.
|
void |
setNodeEdgeDistFactor(double nodeEdgeDistFactor)
Sets a value specifying the importance of the distance between nodes and links
relative to the other criteria considered by the algorithm.
|
void |
setPrecision(double precision)
Sets the cost calculations precision.
|
void |
setRandomize(boolean randomize)
Sets a value indicating whether the nodes should be placed
at random positions when the layout routine starts.
|
void |
setStages(int stages)
Sets how many cooling stages the algorithm should simulate.
|
void |
setTemperature(double temperature)
Sets the initial temperature of the simulated annealing process.
|
void |
setTemperatureScale(double temperatureScale)
Sets how much the simulated temperature is decreased at each stage of the algorithm.
|
void |
setWidthHeightRatio(double widthHeightRatio)
Sets what width / height ratio the layout area should have.
|
public double getBoundaryFactor()
public void setBoundaryFactor(double boundaryFactor)
boundaryFactor
- A multiplier applied to the node-to-boundary distance cost
when evaluating the total cost of a graph configuration. The default is 3000.public double getNodeEdgeCrossingCost()
public void setNodeEdgeCrossingCost(double nodeEdgeCrossingCost)
nodeEdgeCrossingCost
- A value added to the total cost of a graph configuration
for each crossing of link and node. The default is 100000.public double getCrossingEdgesCost()
public void setCrossingEdgesCost(double crossingEdgesCost)
crossingEdgesCost
- A value added to the total cost of a graph configuration
for each pair of crossing links. The default is 100000.public double getDistributionFactor()
public void setDistributionFactor(double distributionFactor)
distributionFactor
- A multiplier applied to the node distribution cost when evaluating
the total cost of a graph configuration. The default is 40000.public double getEdgeLengthFactor()
public void setEdgeLengthFactor(double edgeLengthFactor)
edgeLengthFactor
- A multiplier applied to the link length cost when evaluating
the total cost of a graph configuration. The default is 0.25.public int getIterationsPerStage()
public void setIterationsPerStage(int iterationsPerStage)
iterationsPerStage
- An integer value specifying the number of iterations. The default is 50public android.graphics.RectF getLayoutArea()
public void setLayoutArea(android.graphics.RectF layoutArea)
layoutArea
- The layout area coordinates.public double getNodeEdgeDistFactor()
public void setNodeEdgeDistFactor(double nodeEdgeDistFactor)
nodeEdgeDistFactor
- A multiplier applied to the node-to-link distance cost when evaluating
the total cost of a graph configuration. The default is 20000.public boolean getRandomize()
public void setRandomize(boolean randomize)
public int getStages()
public void setStages(int stages)
stages
- The number of cooling stagespublic double getTemperature()
public void setTemperature(double temperature)
temperature
- A double value specifying the initial temperature of the simulated process.public double getTemperatureScale()
public void setTemperatureScale(double temperatureScale)
temperatureScale
- A multipler applied to the current temperature at the end of each
cooling stage. The default value is 0.75public double getWidthHeightRatio()
public void setWidthHeightRatio(double widthHeightRatio)
public double getPrecision()
public void setPrecision(double precision)