Interface ControlPoint


public interface ControlPoint
  • Method Summary

    Modifier and Type Method Description
    drawit.IntPoint getLocation()
    The location of this control point, in shape coordinates.
    void move​(drawit.IntVector delta)
    Mutate the shape so that this control point's location, expressed in global coordinates, equals its initial location (i.e.
    void remove()
    If this control point corresponds to a polygon vertex, remove the vertex from the polygon's list of vertices.
  • Method Details

    • getLocation

      drawit.IntPoint getLocation()
      The location of this control point, in shape coordinates.
    • remove

      void remove()
      If this control point corresponds to a polygon vertex, remove the vertex from the polygon's list of vertices. Otherwise, throw an UnsupportedOperationException.
    • move

      void move​(drawit.IntVector delta)
      Mutate the shape so that this control point's location, expressed in global coordinates, equals its initial location (i.e. the location at the time of the getControlPoints() call through which this ControlPoint object was obtained) plus the given vector.