android.image
Class Ellipse

java.lang.Object
  extended by android.image.Image
      extended by android.image.Rectangle
          extended by 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")


Field Summary
 
Fields inherited from class android.image.Image
BLACK_OUTLINE, CLEAR, WHITE
 
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.Rectangle
height, width
 
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
 

Constructor Detail

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

Method Detail

paint

public void paint(android.graphics.Canvas c,
                  int x,
                  int y)
Paint this Scene into the given graphics

Overrides:
paint in class Rectangle