Class BasicEllipse

  • All Implemented Interfaces:
    CanvasComponent, Figure, ShapedFigure, VisibleComponent, UserObjectContainer

    public class BasicEllipse
    extends BasicFigure
    A figure that displays as an ellipse. This is a convenience class for creating ellipses. It inherits from BasicFigure, and so contains a single Ellipse2D as its shape. It provides a useful set of constructors.
    Version:
    $Id$
    Author:
    John Reekie
    • Constructor Detail

      • BasicEllipse

        public BasicEllipse​(java.awt.geom.Ellipse2D ellipse)
        Create a new ellipse with the given ellipse shape, a unit-width continuous stroke and no paint pattern.
      • BasicEllipse

        public BasicEllipse​(double x,
                            double y,
                            double width,
                            double height)
        Create a new ellipse with the given origin and size, a unit-width continuous stroke and no paint pattern.
      • BasicEllipse

        public BasicEllipse​(double x,
                            double y,
                            double width,
                            double height,
                            java.awt.Paint fill)
        Create a new ellipse with the given origin, size, and fill paint. It has no outline.
      • BasicEllipse

        public BasicEllipse​(double x,
                            double y,
                            double width,
                            double height,
                            float lineWidth)
        Create a new ellipse with the given origin, size, and outline width. It has no fill.
      • BasicEllipse

        public BasicEllipse​(double x,
                            double y,
                            double width,
                            double height,
                            java.awt.Paint fill,
                            float lineWidth)
        Create a new ellipse with the given origin, size, fill, and outline width.