TreeMapSeries class
树图
Constructors
-
TreeMapSeries(TreeData data, {StyleFun<
TreeMapNode, LabelStyle?> ? labelStyleFun, LayoutType layoutType = LayoutType.square, int showDepth = 2, Fun1<TreeMapNode, Alignment> ? alignFun, Fun1<TreeMapNode, num> ? paddingFun, Fun2<TreeMapNode, TreeMapNode, int> ? sortFun, required StyleFun<TreeMapNode, AreaStyle?> areaStyleFun, SNumber leftMargin = SNumber.zero, SNumber topMargin = SNumber.zero, SNumber rightMargin = SNumber.zero, SNumber bottomMargin = SNumber.zero, SNumber? width, SNumber? height, ToolTip? tooltip, AnimatorProps? animation, bool touch = true, bool clip = true, int z = 0})
Properties
-
alignFun
↔ Fun1<
TreeMapNode, Alignment> ? -
getter/setter pair
- animation ↔ AnimatorProps?
-
坐标系
getter/setter pairinherited
-
areaStyleFun
↔ StyleFun<
TreeMapNode, AreaStyle?> -
getter/setter pair
- bottomMargin ↔ SNumber
-
getter/setter pairinherited
- calendarIndex ↔ int
-
getter/setter pairinherited
- clip ↔ bool
-
getter/setter pairinherited
- coordSystem ↔ CoordSystem?
-
坐标系系统
getter/setter pairinherited
- data ↔ TreeData
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ SNumber?
-
getter/setter pairinherited
-
labelStyleFun
↔ StyleFun<
TreeMapNode, LabelStyle?> ? -
getter/setter pair
- layoutType ↔ LayoutType
-
getter/setter pair
- leftMargin ↔ SNumber
-
定义布局的上下左右间距或者宽高,
宽高的优先级大于上下间距的优先级(如果定义了)
getter/setter pairinherited
-
paddingFun
↔ Fun1<
TreeMapNode, num> ? -
getter/setter pair
- parallelIndex ↔ int
-
getter/setter pairinherited
- polarAxisIndex ↔ int
-
getter/setter pairinherited
- radarIndex ↔ int
-
getter/setter pairinherited
- rightMargin ↔ SNumber
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDepth ↔ int
-
getter/setter pair
-
sortFun
↔ Fun2<
TreeMapNode, TreeMapNode, int> ? -
getter/setter pair
- tooltip ↔ ToolTip?
-
getter/setter pairinherited
- topMargin ↔ SNumber
-
getter/setter pairinherited
- touch ↔ bool
-
getter/setter pairinherited
- width ↔ SNumber?
-
getter/setter pairinherited
- xAxisIndex ↔ int
-
坐标轴取值(和coordSystem配合实现定位)
(默认的所有坐标轴开始都是为0)
getter/setter pairinherited
- yAxisIndex ↔ int
-
getter/setter pairinherited
- z ↔ int
-
getter/setter pairinherited
Methods
-
addListener(
ValueCallback< int> callback) → void -
下面是对ValueNotifier的简单封装
inherited
-
change(
int notifyData) → void -
inherited
-
computePosition(
double left, double top, double right, double bottom) → Rect -
计算内容区域
inherited
-
computePositionBySelf(
double left, double top, double right, double bottom) → Rect -
从当前
inherited
-
dispose(
) → void -
inherited
-
hasListeners(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
ValueCallback< int> callback) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
[bool relayout = false]) → void -
当数据发生改变后,需要调用该方法,进行重绘或者重新布局
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited