Class RingElement

  • All Implemented Interfaces:
    IRenderingElement

    public class RingElement
    extends OvalElement
    implements IRenderingElement
    A ring is just a circle - in other words, an oval whose width and height are the same.
    Source code:
    main
    Belongs to CDK module:
    renderbasic
    • Constructor Detail

      • RingElement

        public RingElement​(double x,
                           double y,
                           double radius,
                           Color color)
        Make a ring element centered on (x, y) with radius and color given.
        Parameters:
        x - the x-coordinate of the ring center
        y - the y-coordinate of the ring center
        radius - the radius of the circle
        color - the color of the circle