ForceLayout class

Inheritance

Constructors

ForceLayout(List<Force> forces, {double alpha = 1, double alphaMin = 0.001, double? alphaDecay, double alphaTarget = 0, double velocityDecay = 0.6})

Properties

forces List<Force>
final
hashCode int
The hash code for this object.
no setterinherited
layoutEnd VoidCallback
no getterinherited
layoutUpdate VoidCallback
no getterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort ↔ Fun2<Graph, List<GraphNode>, Map<GraphNode, num>>?
排序
getter/setter pairinherited
workerThread bool
getter/setter pairinherited

Methods

alpha(double value) ForceLayout
alphaDecay(double value) ForceLayout
alphaMin(double value) ForceLayout
alphaTarget(double value) ForceLayout
doLayout(Context context, Graph graph, num width, num height) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLayoutEnd() → void
inherited
onLayoutUpdate() → void
inherited
restart() ForceLayout
sortNode(Graph graph, List<GraphNode> list) → void
inherited
start() ForceLayout
stop() ForceLayout
toString() String
A string representation of this object.
inherited
velocityDecay(double value) ForceLayout

Operators

operator ==(Object other) bool
The equality operator.
inherited