DrawingModeManager class
绘图模式管理器 负责管理绘图工具的各种模式状态和辅助功能
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isContinuousMode → bool
-
no setter
- isDrawingModeEnabled → bool
-
no setter
- isMagnetMode → bool
-
no setter
- onModeChanged ↔ VoidCallback?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getModeDescription(
) → String - 获取当前模式状态描述
-
magnetSnap(
Offset point, List< KLineEntity> ? datas, double scaleX, double scrollX, double getX(double), double getY(double), Rect chartRect) → Offset - 磁铁吸附功能 - 将点吸附到最近的K线数据点
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetAllModes(
) → void - 重置所有模式状态
-
setContinuousMode(
bool enabled) → void - 设置持续绘图模式
-
setDrawingMode(
bool enabled) → void - 设置绘图模式总开关
-
setMagnetMode(
bool enabled) → void - 设置磁铁模式
-
shouldContinueAfterDrawing(
) → bool - 检查是否应该在完成绘图后继续绘图模式
-
toggleContinuousMode(
) → void - 切换持续绘图模式
-
toggleDrawingMode(
) → void - 切换绘图模式总开关
-
toggleMagnetMode(
) → void - 切换磁铁模式
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited