View class abstract

Inheritance
Implemented types
Implementers

Constructors

View({Paint? paint, int zIndex = 0})

Properties

areaBounds → Rect
no setter
bottom → double
no setter
boundRect ↔ Rect
getter/setter pair
centerX → double
no setter
centerY → double
no setter
context ↔ Context
getter/setter pair
forceLayout ↔ bool
getter/setter pair
forceMeasure ↔ bool
getter/setter pair
globalAreaBound → Rect
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → double
no setter
index ↔ int
getter/setter pair
inDrawing ↔ bool
getter/setter pair
inLayout ↔ bool
getter/setter pair
isDirty → bool
no setter
layoutCompleted ↔ bool
getter/setter pair
left → double
no setter
measureCompleted ↔ bool
getter/setter pair
oldBoundRect ↔ Rect
getter/setter pair
paint ↔ Paint
getter/setter pair
parent → ViewParent?
no setter
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleX ↔ double
getter/setter pair
scaleY ↔ double
getter/setter pair
scrollX ↔ double
getter/setter pair
scrollY ↔ double
getter/setter pair
top → double
no setter
translationX ↔ double
getter/setter pair
translationY ↔ double
getter/setter pair
width → double
====================普通属性函数=======================================
no setter
zIndex ↔ int
getter/setter pair

Methods

attach(Context context, ViewParent parent) → void
bindSeries(ChartSeries series) → void
clearDirty() → void
computeScroll() → void
debugDraw(Canvas canvas, Offset offset) → void
debugDraw2(Canvas canvas) → void
detach() → void
dispatchDraw(Canvas canvas) → void
用于ViewGroup覆写
draw(Canvas canvas) → void
override
drawBackground(Canvas canvas, double animatorPercent) → void
drawSelf(Canvas canvas, ViewGroup parent) → bool
getToolTip() → ToolTip?
======================处理ToolTip========================
override
hitTest(Offset localPosition) → bool
======================= 事件处理=======================
invalidate() → void
invalidateWithAnimator() → void
layout(double left, double top, double right, double bottom) → void
override
markDirty() → void
measure(double parentWidth, double parentHeight) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAttach() → void
onCreatedToolTipItem(Offset globalOffset) → List<ToolTipItem>
override
onDetach() → void
onDraw(Canvas canvas) → void
onDrawEnd(Canvas canvas) → void
onDrawForeground(Canvas canvas) → void
实现绘制前景色
onDrawHighlight(Canvas canvas) → void
覆写实现重绘高亮相关的
onDrawPre() → void
绘制时最先调用的方法,可以在这里面更改相关属性从而实现动画视觉效果
onLayout(double left, double top, double right, double bottom) → void
onLayoutEnd() → void
onMeasure(double parentWidth, double parentHeight) → Size
onScrollChanged(double scrollX, double scrollY, double oldScrollX, double oldScrollY) → void
requestLayout() → void
scrollBy(int x, int y, {bool redraw = false}) → void
scrollTo(double x, double y, {bool redraw = false}) → void
setScale(double x, double y) → void
setScroll(double x, double y) → void
setTranslation(double x, double y) → void
toGlobalOffset(Offset localOffset) → Offset
toLocalOffset(Offset globalOffset) → Offset
toolTipInArea(Offset globalOffset) → bool
override
toString() → String
A string representation of this object.
inherited
unBindSeries() → void

Operators

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