FruchtermanReingoldAlgorithm class

Implemented types

Constructors

FruchtermanReingoldAlgorithm({int iterations = DEFAULT_ITERATIONS, EdgeRenderer? renderer, double repulsionRate = REPULSION_RATE, double attractionRate = ATTRACTION_RATE, double repulsionPercentage = REPULSION_PERCENTAGE, double attractionPercentage = ATTRACTION_PERCENTAGE})

Properties

attractionPercentage double
getter/setter pair
attractionRate double
getter/setter pair
displacement Map<Node, Offset>
getter/setter pair
focusedNode ↔ dynamic
getter/setter pair
graphHeight double
getter/setter pair
graphWidth double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iterations int
getter/setter pair
rand Random
getter/setter pair
renderer EdgeRenderer?
getter/setter pairoverride
repulsionPercentage double
getter/setter pair
repulsionRate double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tick double
getter/setter pair

Methods

calculateAttraction(List<Edge> edges) → void
calculateGraphSize(Graph graph) Size
calculateRepulsion(List<Node> nodes) → void
combineSingleNodeCluster(List<NodeCluster> nodeClusters) → void
cool(int currentIteration) → void
done() bool
drawEdges(Canvas canvas, Graph graph, Paint linePaint) → void
findBiggestSize(Graph graph) double
findClusterOf(List<NodeCluster> clusters, Node node) NodeCluster?
followEdges(Graph graph, NodeCluster cluster, Node node, List nodesVisited) → void
getOffset(Graph graph) Offset
init(Graph? graph) → void
override
limitMaximumDisplacement(List<Node> nodes) → void
moveNodes(Graph graph) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionCluster(List<NodeCluster> nodeClusters) → void
positionNodes(Graph graph) → void
run(Graph? graph, double shiftX, double shiftY) Size
Executes the algorithm. @param shiftY Shifts the y-coordinate origin @param shiftX Shifts the x-coordinate origin @return The size of the graph
override
setDimensions(double width, double height) → void
override
setFocusedNode(Node node) → void
override
shiftCoordinates(Graph graph, double shiftX, double shiftY) → void
step(Graph? graph) → void
override
toString() String
A string representation of this object.
inherited

Operators

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