All Implemented Interfaces:
Cloneable, DrawOperation

public class Ellipse extends BasicShape implements DrawOperation
Draw an ellipse.
See Also:
  • Field Details

    • width

      protected int width
    • height

      protected int height
  • Constructor Details

    • Ellipse

      public Ellipse()
  • Method Details

    • setWidth

      public void setWidth(int width)
      Set the width.
      Parameters:
      width - the width of the ellipse.
    • setHeight

      public void setHeight(int height)
      Set the height.
      Parameters:
      height - the height of the ellipse.
    • executeDrawOperation

      public javax.media.jai.PlanarImage executeDrawOperation()
      Abstract method which is intended to create an image buffer and return it so it can be drawn into another object. Use an Alpha channel for a "transparent" background..
      Specified by:
      executeDrawOperation in interface DrawOperation
      Returns:
      a planar image