addTestTools method

void addTestTools()

Implementation

void addTestTools() {
  // 添加一条测试趋势线
  final testTrendLine = TrendLineTool(
    id: 'test_trend',
    startPoint: Offset(50, 100),
    endPoint: Offset(300, 250),
    color: Colors.blue,
    strokeWidth: 2.0,
  );
  _tools.add(testTrendLine);

  // 添加一条测试水平线
  final testHorizontalLine = HorizontalLineTool(
    id: 'test_horizontal',
    yPosition: 200.0,
    color: Colors.red,
    strokeWidth: 2.0,
  );
  _tools.add(testHorizontalLine);

  debugPrint('测试绘图工具添加完成,工具数量: ${_tools.length}');
  _notifyToolsChanged();
}