GridLayout class
网格布局
- Inheritance
-
- Object
- GraphLayout
- GridLayout
Constructors
-
GridLayout.new({List<
SNumber> begin = const [SNumber.number(0), SNumber.number(0)], bool condense = false, bool preventOverlap = false, num nodeSize = 20, int? rows = 0, int? cols = 0, Fun1<GraphNode, num> ? nodeSpaceFun, Fun1<GraphNode, Size> ? sizeFun, Fun2<Graph, List< ? sort, bool workerThread = false})GraphNode> , Map<GraphNode, num> >
Properties
-
begin
↔ List<
SNumber> -
左上角开始位置
getter/setter pair
- cols ↔ int?
-
getter/setter pair
- condense ↔ bool
-
为true时最小化画布空间否则最大
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutEnd ← VoidCallback
-
no getterinherited
- layoutUpdate ← VoidCallback
-
no getterinherited
- nodeSize ↔ num
-
getter/setter pair
-
nodeSpaceFun
↔ Fun1<
GraphNode, num> ? -
getter/setter pair
-
positionFun
↔ Fun3<
GraphNode, int, int, Point< ?int> ?> -
位置函数(可用于固定位置)
getter/setter pair
- preventOverlap ↔ bool
-
是否防止重叠(当为true时,才会使用nodeSize进行碰撞检查)
getter/setter pair
- rows ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sizeFun
↔ Fun1<
GraphNode, Size> ? -
getter/setter pair
-
sort
↔ Fun2<
Graph, List< ?GraphNode> , Map<GraphNode, num> > -
排序
getter/setter pairinherited
- workerThread ↔ bool
-
getter/setter pairinherited
Methods
-
doLayout(
Context context, Graph graph, num width, num height) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLayoutEnd(
) → void -
inherited
-
onLayoutUpdate(
) → void -
inherited
-
sortNode(
Graph graph, List< GraphNode> list) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited