GraphAlgorithm class abstract

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

Implementers

Constructors

GraphAlgorithm({List<GraphAlgorithm>? decorators})

Properties

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

Methods

afterDrag(Vertex vertex, Vector2 globalDelta) → void
beforeLoad(dynamic data) → void
beforeMerge(dynamic data) → dynamic
compute(Vertex v, Graph graph) → void
Position setter.
hideHorizontalOverlay() → void
hideOverlay(String name) → void
hideVertexTapUpOverlay() → void
hideVerticalOverlay() → void
horizontalOverlays({required World world, required GraphAlgorithm rootAlg, required GraphComponent graphComponent}) List<Widget>?
leftOverlays({required World world, required GraphAlgorithm rootAlg, required GraphComponent graphComponent}) List<Widget>?
needContinue(Vertex v) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDrag(Vertex hoverVertex, Vector2 globalDelta, 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.
setGlobalData({required World world, required GraphAlgorithm rootAlg, required GraphComponent graphComponent}) → dynamic
toString() String
A string representation of this object.
inherited
verticalOverlays({required World world, required GraphAlgorithm rootAlg, required GraphComponent graphComponent}) List<Widget>?

Operators

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