android.image
Class Ellipse
java.lang.Object
android.image.Image
android.image.Rectangle
android.image.Ellipse
- Direct Known Subclasses:
- Circle
public class Ellipse
- extends Rectangle
Represents an Image of an Ellipse.
new Ellipse(40, 20, "outline", "black")
new Ellipse(20, 40, "solid", "blue")
Constructor Summary |
Ellipse(double width,
double height,
java.lang.String mode,
java.lang.String color)
Create a Ellipse Image with (double) width and height, mode and color |
Ellipse(int width,
int height,
java.lang.String mode,
java.lang.String color)
Create a Ellipse Image with (int) width and height, mode and color |
Method Summary |
void |
paint(android.graphics.Canvas c,
int x,
int y)
Paint this Scene into the given graphics |
Methods inherited from class android.image.Image |
flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ellipse
public Ellipse(double width,
double height,
java.lang.String mode,
java.lang.String color)
- Create a Ellipse Image with (double) width and height, mode and color
Ellipse
public Ellipse(int width,
int height,
java.lang.String mode,
java.lang.String color)
- Create a Ellipse Image with (int) width and height, mode and color
paint
public void paint(android.graphics.Canvas c,
int x,
int y)
- Paint this Scene into the given graphics
- Overrides:
paint
in class Rectangle