public class mxOrganicLayoutPrefsCmd extends ContextCommand
Modifier and Type | Field and Description |
---|---|
protected double |
borderLineCostFactor
Cost factor applied to energy calculations for node proximity to the
notional border of the graph.
|
protected boolean |
disableEdgeStyle
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are
modified by the result.
|
protected double |
edgeCrossingCostFactor
Cost factor applied to energy calculations involving edges that cross
over one another.
|
protected double |
edgeDistanceCostFactor
Cost factor applied to energy calculations involving the distance
nodes and edges.
|
protected double |
edgeLengthCostFactor
Cost factor applied to energy calculations for the edge lengths.
|
protected double |
fineTuningRadius
The radius below which fine tuning of the layout should start
This involves allowing the distance between nodes and edges to be
taken into account in the total energy calculation.
|
protected int |
maxIterations
Limit to the number of iterations that may take place.
|
protected double |
nodeDistributionCostFactor
Cost factor applied to energy calculations involving the general node
distribution of the graph.
|
protected double |
radiusScaleFactor
The factor by which the
moveRadius is multiplied by after
every iteration. |
protected boolean |
resetEdges
Specifies if all edge points of traversed edges should be removed.
|
Constructor and Description |
---|
mxOrganicLayoutPrefsCmd() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
run() |
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
protected double radiusScaleFactor
moveRadius
is multiplied by after
every iteration. A value of 0.75 is a good balance between performance
and aesthetics. Increasing the value provides more chances to find
minimum energy positions and decreasing it causes the minimum radius
termination condition to occur more quickly.protected double fineTuningRadius
protected int maxIterations
protected double edgeDistanceCostFactor
isOptimizeEdgeDistance
must be true for edge to nodes
distances to be taken into account.protected double edgeCrossingCostFactor
isOptimizeEdgeCrossing
must be true for edge crossings
to be taken into account.protected double nodeDistributionCostFactor
isOptimizeNodeDistribution
must be true for this general
distribution to be applied.protected double borderLineCostFactor
isOptimizeBorderLine
must be true for border
repulsion to be applied.protected double edgeLengthCostFactor
isOptimizeEdgeLength
must be true for edge length
shortening to be applied.protected boolean disableEdgeStyle
protected boolean resetEdges
public void run()
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.