StartingGroovy
StartingGroovy

Reputation: 2860

Does Android include libraries similar to java.awt.geom?

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?

Upvotes: 0

Views: 2389

Answers (1)

Femi
Femi

Reputation: 64700

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.

Upvotes: 2

Related Questions