BrnDefaultFunnelLayerPainter class
漏斗图默认LayerPainter,在漏斗每层layer中间绘制文案,每层的颜色值使用Bruno预设的颜色。
- Inheritance
-
- Object
- BrnFunnelLayerPainter
- BrnDefaultFunnelLayerPainter
Constructors
-
BrnDefaultFunnelLayerPainter({TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 14), List<
String> titles = const <String>[]})
Properties
Methods
-
getLayerColors(
int layerIndex) → List< Color> -
该层layer的颜色值
override
-
isGradient(
int layerIndex) → bool -
该层layer的颜色是否渐变
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintLayer(
Canvas canvas, double left, double? top, double right, double bottom, int layerIndex) → void -
当需要绘制Layer的时候,会调用该方法。子类在该方法里实现自己的绘制逻辑。
canvas
提供的画布,对画布进行旋转裁剪等特殊操作,一定要调用canvas.save()
操作。left
,top
,right
,bottom
是提供给调用者绘制的一个安全区域,超过这个区域限制,可能会被截断layerIndex
漏斗的layer index。override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited