VertexShape class abstract

Used to customize the vertex UI.

用于自定义节点的UI。

Implementers

Constructors

VertexShape({List<VertexDecorator>? decorators})

Properties

decorators ↔ List<VertexDecorator>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textRenderer ↔ VertexTextRenderer?
getter/setter pair

Methods

getPaint(Vertex vertex) → Paint
update the paint from data.
height(Vertex vertex) → double
compute the height of the shape from data, used for overlap and mouse event judgment.
hoverTest(Vertex v) → bool
isWeaken(Vertex vertex) → bool
When some elements are activated and do not contain the current element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDrag(Vector2 delta) → bool
onLoad(Graph graph) → void
onPointerDown(PointerDownEvent e) → void
onPointerUp(PointerUpEvent e) → void
render(Vertex vertex, Canvas canvas, Paint paint, List<Paint> paintLayers) → void
render the vertex shape to canvas by data.
size(Vertex vertex) → Vector2
compute the size of the shape from data, used for overlap and mouse event judgment.
toString() → String
A string representation of this object.
inherited
transformMatrix(Vertex vertex) → Matrix4
width(Vertex vertex) → double
compute the width of the shape from data, used for overlap and mouse event judgment.

Operators

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