GraphAlgorithm class abstract

Interface: point assignment algorithm of graph. 接口:图的点位赋值算法

Implementers

Constructors

GraphAlgorithm(GraphAlgorithm? decorator)

Properties

$size ValueNotifier<Size?>
Notify the size change event.
getter/setter pair
center Offset
Center of stage. 图形展示的中心点
no setter
decorator GraphAlgorithm?
Algorithm decorate support. 定位算法的装饰器,可多个算法同时使用。
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
offset double
Nodes zoom offset from center. 节点区域相对中心点的偏移量。
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size?
Stage size. 图形展示的区域边界
no setter

Methods

compute(Vertex v, Graph graph) → void
Position setter. 对节点进行定位设值
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDrag(Vertex hoverVertex, DragUpdateInfo info, Viewfinder viewfinder) → void
onGraphLoad(Graph graph) → void
onLoad(Vertex v) → void
Called when the graph is loaded.
onZoomEdge(Edge edge, Vector2 pointLocation, double delta) → void
onZoomVertex(Vertex vertex, Vector2 pointLocation, double delta) → void
repositionWhenCollision(Vertex me, Vertex another) → void
Vertexes will be reposition when they collided with another.
toString() String
A string representation of this object.
inherited

Operators

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