Class Circle

All Implemented Interfaces:
Serializable

public class Circle extends MarkWithPositionAndSingleRadius
Represents a 2D circle mark.

This class extends MarkWithPositionAndSingleRadius to provide functionality specific to circular marks.

See Also:
  • Constructor Details

    • Circle

      public Circle(Bound boundRadius)
      Creates a circle with a radius within particular bounds.
      Parameters:
      boundRadius - the bound for the circle's radius
    • Circle

      public Circle(Circle source)
      Copy constructor.
      Parameters:
      source - the Circle to copy from
    • Circle

      public Circle()
  • Method Details

    • getName

      public String getName()
      Description copied from class: Mark
      Returns the name of this mark type.
      Specified by:
      getName in class Mark
      Returns:
      the name of the mark
    • volume

      public double volume(int regionID)
      Description copied from class: Mark
      Calculates the volume of a specific region of the mark.
      Specified by:
      volume in class Mark
      Parameters:
      regionID - the ID of the region
      Returns:
      the volume of the region
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • duplicate

      public Mark duplicate()
      Description copied from class: Mark
      Creates a duplicate of this mark.
      Specified by:
      duplicate in class Mark
      Returns:
      a new Mark instance that is a copy of this one
    • numberDimensions

      public int numberDimensions()
      Description copied from class: Mark
      Returns the number of dimensions of this mark.
      Specified by:
      numberDimensions in class Mark
      Returns:
      the number of dimensions