Class Ellipse

Direct Known Subclasses:
Circle

public class Ellipse extends RectangularShape
  • Field Details

    • x

      public double x
    • y

      public double y
    • width

      public double width
    • height

      public double height
  • Constructor Details

    • Ellipse

      public Ellipse()
    • Ellipse

      public Ellipse(double X, double Y, double WIDTH, double HEIGHT)
  • Method Details

    • getX

      public double getX()
      Specified by:
      getX in class RectangularShape
    • getY

      public double getY()
      Specified by:
      getY in class RectangularShape
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class RectangularShape
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class RectangularShape
    • getCenterX

      public double getCenterX()
      Overrides:
      getCenterX in class RectangularShape
    • setCenterX

      public void setCenterX(double centerX)
    • getCenterY

      public double getCenterY()
      Overrides:
      getCenterY in class RectangularShape
    • setCenterY

      public void setCenterY(double centerY)
    • setCenter

      public void setCenter(double centerX, double centerY)
    • getRadiusX

      public double getRadiusX()
    • setRadiusX

      public void setRadiusX(double radiusX)
    • getRadiusY

      public double getRadiusY()
    • setRadiusY

      public void setRadiusY(double radiusY)
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class RectangularShape
    • set

      public void set(double X, double Y, double WIDTH, double HEIGHT)
      Specified by:
      set in class RectangularShape
    • getBounds

      public RectBounds getBounds()
      Overrides:
      getBounds in class RectangularShape
    • intersects

      public boolean intersects(double X, double Y, double WIDTH, double HEIGHT)
      Specified by:
      intersects in class Shape
    • contains

      public boolean contains(double X, double Y)
      Specified by:
      contains in class Shape
    • contains

      public boolean contains(double X, double Y, double WIDTH, double HEIGHT)
      Specified by:
      contains in class Shape
    • getPathIterator

      public PathIterator getPathIterator(BaseTransform TRANSFORM)
      Specified by:
      getPathIterator in class Shape
    • copy

      public Ellipse copy()
      Specified by:
      copy in class Shape
    • equals

      public boolean equals(Object OBJECT)
      Overrides:
      equals in class Object