StaticLayoutAlgorithm class abstract
A generic static graph layout algorithm.
Constructors
- StaticLayoutAlgorithm({required Graph graph})
Properties
- graph → Graph
-
The topology of the given graph.
final
- 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 pair
- layoutDimensions ↔ Vector2
-
The components of this vector correspond to the dimensions of the graph
layout drawing area.
getter/setter pair
- nodeLayout → NodeLayout
-
The computed layout of the given graph.
final
- nodeRadius ↔ double
-
getter/setter pair
- 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 pair
Methods
-
clampNodeVector(
Vector2 nodePosition) → void - Ensure no part of each drawn node is drawn outside the layout area.
-
computeLayout(
) → void -
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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited