All Implemented Interfaces:
Mask

public class Circle extends Shape<Circle>

A Circle specifies an area in a the world defined by the Circle's center point (x,y) and its radius.

The coordinates and radius are in world units.
  • Method Details

    • setRadius

      public Circle setRadius(int radius)
      Sets the radius of this Circle in world units.

      Default is 100.

      Parameters:
      radius - the radius for this Circle.
      Returns:
      this Circle.
      Throws:
      IllegalArgumentException - if radius < 0
    • setRadius

      public Circle setRadius(int radius, Curve curve)
      Sets the radius of this Circle in world units.

      Default is 100.

      Parameters:
      radius - the radius for this Circle.
      curve - the transition to animate between values of this property.
      Returns:
      this Circle.
      Throws:
      IllegalArgumentException - if radius < 0
    • getRadius

      public int getRadius()

      Returns the radius of this Circle in world units.

      Default is 100.

      Returns:
      the radius of this Circle.