image
Class Ellipse

java.lang.Object
  extended by image.Image
      extended by image.Rectangle
          extended by 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(java.awt.Graphics g, int x, int y)
          Paint this Scene into the given graphics
 
Methods inherited from class image.Rectangle
height, width
 
Methods inherited from class 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(java.awt.Graphics g,
                  int x,
                  int y)
Paint this Scene into the given graphics

Overrides:
paint in class Rectangle