|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.jlayout.AnnealLayoutInfo
public class AnnealLayoutInfo
Constructor Summary | |
---|---|
AnnealLayoutInfo()
|
Method Summary | |
---|---|
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 arrow 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 arrows 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. |
java.awt.geom.Rectangle2D.Float |
getLayoutArea()
Gets the size of the layout area. |
double |
getNodeEdgeCrossingCost()
Gets a value specifying how important the low number of crossings of arrows with edges is relatively to the other criteria considered by the algorithm. |
double |
getNodeEdgeDistFactor()
Gets a value specifying the importance of the distance between nodes and arrows 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 arrow 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 arrows 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(java.awt.geom.Rectangle2D.Float layoutArea)
Sets the size of the layout area. |
void |
setNodeEdgeCrossingCost(double nodeEdgeCrossingCost)
Sets a value specifying how important the low number of crossings of arrows with edges 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 arrows 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnealLayoutInfo()
Method Detail |
---|
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 arrow 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 arrows. 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 arrow 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 java.awt.geom.Rectangle2D.Float getLayoutArea()
public void setLayoutArea(java.awt.geom.Rectangle2D.Float 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |