Class ControlPath


  • public class ControlPath
    extends java.lang.Object
    A ControlPath is a container of Point objects and Curve objects. The control-path uses arrays to store the points and curves.
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlPath()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCurve​(Curve c)
      Adds a curve to the curve array at index location numCurves.
      void addPoint​(Point p)
      Adds a point to the point array at index location numPoints.
      Curve getCurve​(int index)
      Returns the curve at the specified index.
      Point getPoint​(int index)
      Returns the point at the specified index.
      int numCurves()
      Returns the number of curves in the control-path.
      int numPoints()
      Returns the number of points in the control-path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ControlPath

        public ControlPath()
    • Method Detail

      • addCurve

        public void addCurve​(Curve c)
        Adds a curve to the curve array at index location numCurves.
      • addPoint

        public void addPoint​(Point p)
        Adds a point to the point array at index location numPoints.
      • getCurve

        public Curve getCurve​(int index)
        Returns the curve at the specified index.
      • getPoint

        public Point getPoint​(int index)
        Returns the point at the specified index.
      • numCurves

        public int numCurves()
        Returns the number of curves in the control-path.
      • numPoints

        public int numPoints()
        Returns the number of points in the control-path.