Class OvalElement

    • Field Detail

      • xCoord

        public final double xCoord
        The x-coordinate of the center of the oval.
      • yCoord

        public final double yCoord
        The y-coordinate of the center of the oval.
      • radius

        public final double radius
        The radius of the oval.
      • stroke

        public final double stroke
        The stroke width.
      • fill

        public final boolean fill
        If true, draw the oval as filled.
      • color

        public final Color color
        The color to draw the oval.
    • Constructor Detail

      • OvalElement

        public OvalElement​(double xCoord,
                           double yCoord,
                           Color color)
        Make an oval with a default radius of 10.
        Parameters:
        xCoord - the x-coordinate of the center of the oval
        yCoord - the y-coordinate of the center of the oval
        color - the color of the oval
      • OvalElement

        public OvalElement​(double xCoord,
                           double yCoord,
                           double radius,
                           Color color)
        Make an oval with the supplied radius.
        Parameters:
        xCoord - the x-coordinate of the center of the oval
        yCoord - the y-coordinate of the center of the oval
        radius - the radius of the oval
        color - the color of the oval
      • OvalElement

        public OvalElement​(double xCoord,
                           double yCoord,
                           double radius,
                           double stroke,
                           boolean fill,
                           Color color)
        Make an oval with a particular fill and color.
        Parameters:
        xCoord - the x-coordinate of the center of the oval
        yCoord - the y-coordinate of the center of the oval
        radius - the radius of the oval
        fill - if true, fill the oval when drawing
        color - the color of the oval
      • OvalElement

        public OvalElement​(double xCoord,
                           double yCoord,
                           double radius,
                           boolean fill,
                           Color color)