InteractiveLayoutAlgorithm class abstract
A generic interactive graph layout algorithm.
- Inheritance
-
- Object
- StaticLayoutAlgorithm
- InteractiveLayoutAlgorithm
Constructors
- InteractiveLayoutAlgorithm({required Graph graph})
Properties
-
constrainedNodes
→ Set<
Node> -
The nodes unaffected by iterations of the algorithm.
final
- graph → Graph
-
The topology of the given graph.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutCentre ↔ Vector2
-
The centre of the area where the graph layout is drawn.
getter/setter pairinherited
- layoutDimensions ↔ Vector2
-
The components of this vector correspond to the dimensions of the graph
layout drawing area.
getter/setter pairinherited
- nodeLayout → NodeLayout
-
The computed layout of the given graph.
finalinherited
- nodeRadius ↔ double
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stableThreshold ↔ double
-
The threshold for a small change in node position in one axis.
getter/setter pairinherited
Methods
-
clampNodeVector(
Vector2 nodePosition) → void -
Ensure no part of each drawn node is drawn outside the layout area.
inherited
-
computeLayout(
) → void -
Repeatedly run iterate until a stable layout is obtained.
override
-
iterate(
) → bool - Perform one iteration of the algorithm, updating nodeLayout.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLayoutParameters(
{required double width, required double height, required double nodeRadius}) → void -
Specify the graph layout area and the radius of each node.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited