Class SurfaceCircle

    • Constructor Detail

      • SurfaceCircle

        public SurfaceCircle()
        Constructs a new surface circle with the default attributes, default center location and default radius.
      • SurfaceCircle

        public SurfaceCircle​(SurfaceCircle source)
        Creates a shallow copy of the specified source shape.
        Parameters:
        source - the shape to copy.
      • SurfaceCircle

        public SurfaceCircle​(ShapeAttributes normalAttrs)
        Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, default center location, and default radius. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.
        Parameters:
        normalAttrs - the normal attributes. May be null, in which case default attributes are used.
      • SurfaceCircle

        public SurfaceCircle​(LatLon center,
                             double radius)
        Constructs a new surface circle with the default attributes, the specified center location and radius (in meters).
        Parameters:
        center - the circle's center location.
        radius - the circle's radius, in meters.
        Throws:
        java.lang.IllegalArgumentException - if the center is null, or if the radius is negative.
      • SurfaceCircle

        public SurfaceCircle​(LatLon center,
                             double radius,
                             int intervals)
        Constructs a new surface circle with the default attributes, the specified center location, radius (in meters), and initial number of geometry intervals.
        Parameters:
        center - the circle's center location.
        radius - the circle's radius, in meters.
        intervals - the initial number of intervals (or slices) defining the circle's geometry.
        Throws:
        java.lang.IllegalArgumentException - if the center is null, if the radius is negative, or if the number of intervals is less than 8.
      • SurfaceCircle

        public SurfaceCircle​(ShapeAttributes normalAttrs,
                             LatLon center,
                             double radius)
        Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, and radius (in meters). Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.
        Parameters:
        normalAttrs - the normal attributes. May be null, in which case default attributes are used.
        center - the circle's center location.
        radius - the circle's radius, in meters.
        Throws:
        java.lang.IllegalArgumentException - if the center is null, or if the radius is negative.
      • SurfaceCircle

        public SurfaceCircle​(ShapeAttributes normalAttrs,
                             LatLon center,
                             double radius,
                             int intervals)
        Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, radius (in meters), and initial number of geometry intervals. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.
        Parameters:
        normalAttrs - the normal attributes. May be null, in which case default attributes are used.
        center - the circle's center location.
        radius - the circle's radius, in meters.
        intervals - the initial number of intervals (or slices) defining the circle's geometry.
        Throws:
        java.lang.IllegalArgumentException - if the center is null, if the radius is negative, or if the number of intervals is less than 8.
    • Method Detail

      • getRadius

        public double getRadius()
      • setRadius

        public void setRadius​(double radius)