DendrogramLayout class

生态树布局 布局时不考虑节点大小总是将其视作为1, 并且所有的叶子节点总是占满对应的尺寸

Inheritance

Constructors

DendrogramLayout({Direction2 direction = Direction2.ttb, bool diff = false})

Properties

diff bool
当该参数为true时,表示布局传入的参数为每层之间的间距 为false时则表示映射到给定的布局参数
getter/setter pair
direction ↔ Direction2
getter/setter pair
gapFun ↔ Fun2<TreeLayoutNode, TreeLayoutNode, Offset>?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
layoutEnd VoidCallback
no getterinherited
layoutUpdate VoidCallback
no getterinherited
levelGapFun ↔ Fun2<int, int, num>?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeFun ↔ Fun1<TreeLayoutNode, Size>?
getter/setter pairinherited
splitFun ↔ Fun2<TreeLayoutNode, TreeLayoutNode, num>
分隔函数,用于分隔节点间距
getter/setter pair

Methods

doLayout(Context context, TreeLayoutNode root, num width, num height) → void
override
getLevelGap(int level1, int level2, [double defaultGap = 24]) double
inherited
getNodeGap(TreeLayoutNode node1, TreeLayoutNode node2, [Offset defaultGap = const Offset(8, 8)]) Offset
inherited
getSize(TreeLayoutNode node, [Size defaultSize = const Size(8, 8)]) Size
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLayoutEnd() → void
inherited
onLayoutUpdate() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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