【发布时间】:2011-10-08 02:59:08
【问题描述】:
我有一行想要添加到路径中,但没有看到类似于 appened 的方法(在 Java 中将使用 GeneralPath.append(new Line2D.double))
例如,在 Java 代码中,我有类似的内容:
GeneralPath thePlots = new GeneralPath();
thePlots[CONST_INT].append(new Line2D.Double(centerX, centerY, xy[0], xy[1]), false);
//later I draw my line and whatever other points I have
但是,在 Android 中,我看不到附加选项(或 Line2D)。除了使用canvas.drawLine() 然后绘制其余点之外,还有其他方法吗?
【问题讨论】:
标签: java android path append line