Package app.media

Class EllipseShape

All Implemented Interfaces:
Serializable

public class EllipseShape extends GenericShape
An implementation of GenericShape representing an ellipse
See Also:
  • Constructor Details

    • EllipseShape

      public EllipseShape(javafx.geometry.Point2D p1, javafx.geometry.Point2D p2, String colour)
      Initializes an ellipse with the following settings
      Parameters:
      p1 - The first point defining the shape (often the origin point)
      p2 - The second point defining the shape (often the point bound)
      colour - The shape's color
  • Method Details

    • toString

      public String toString()
      Returns the shape's type, position, dimensions and color
      Overrides:
      toString in class Media
      Returns:
      the shape's type, position, dimensions and color