Android 是否包含类似于 java.awt.geom 的库?
我一直在浏览 Android.com 上的参考部分,但找不到 java.awt.geom 库。我知道它并没有像 Java 那样完全包含在内。
具体来说,我正在寻找 java.awt.geom.Point2D
和 java.awt.Ellipse2D
。
Point(http://developer.android.com/reference/android/graphics/Point.html)相当于Java中的Point2D吗?从方法上看,它们略有不同,但这与 Android 等效吗?或者我错过了其他地方的 Point2D 吗?
至于 java.awt.Ellipse2D
我真的没有看到任何可以替代它的东西。我看到 addCircle
、addOval
和 addRoundedRect
。 Android 上有 Ellipse 或同等产品吗?
I have been browsing the reference section on Android.com and couldn't quite find the java.awt.geom library. I'm aware it isn't included exactly as it is with Java.
Specifically I'm looking for java.awt.geom.Point2D
and java.awt.Ellipse2D
.
Is Point (http://developer.android.com/reference/android/graphics/Point.html) equivalent to Point2D in Java? Looking at the methods, they are slightly different, but is this the Android equivalent? Or is there Point2D elsewhere that I've missed?
As for java.awt.Ellipse2D
I don't really see anything that replaces it. I see addCircle
, addOval
, and addRoundedRect
. Is there Ellipse or an equivalent for Android?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看 http://developer.android .com/reference/android/graphics/drawable/shapes/package-summary.html:它有一个 OvalShape,您可以修改高度/宽度以获得椭圆形。
You may want to look at http://developer.android.com/reference/android/graphics/drawable/shapes/package-summary.html: it has an OvalShape you can modify the height/width to get an ellipse.