Class CompositeRing

All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ArcBand, PolylineRing

public class CompositeRing extends Ring implements AutoCloseable
Represents a composite ring.
See Also:
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Ring
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Ring
    • getCurveCount

      public long getCurveCount()
      Returns the number of curves in this composite.
      Returns:
      the number of curves in this composite.
      See Also:
    • getCurveAt

      @NotNull public Curve getCurveAt(long index) throws IllegalArgumentException
      Returns the curve for the requested index.
      Parameters:
      index - the curve index
      Returns:
      the curve at index
      Throws:
      IllegalArgumentException - when requesting an invalid index.
      See Also: