GraphStyle class

The graph style configuration.

图的样式配置类。

Constructors

GraphStyle()

Properties

defaultColor List<Color> Function()
when there is not color matched in tagColor on tagColorByIndex, return random color.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hoverOpacity double
@en: the hover opacity of vertex and edge when hover.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagColor Map<String, Color>?
tagColor is prior to tagColorByIndex. use Vertex.tags to get color in vertexColors
getter/setter pair
tagColorByIndex List<Color>
tagColor is prior to tagColorByIndex. use Vertex.tags to get color in vertexColors
getter/setter pair
vertexTextStyleGetter VertexTextStyleGetter?
@en: the text style of vertex. now is only supports:
getter/setter pair

Methods

colorByTag(String tag, List<String> allTags) Color?
graphColor(Graph graph) → void
set elements color in graph
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
vertexColors(Vertex vertex) List<Color>
get color list by vertex's tags.

Operators

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