Package drawit.shapes1
Interface ControlPoint
public interface ControlPoint
-
Method Summary
Modifier and Type Method Description drawit.IntPointgetLocation()The location of this control point, in shape coordinates.voidmove(drawit.IntVector delta)Mutate the shape so that this control point's location, expressed in global coordinates, equals its initial location (i.e.voidremove()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 anUnsupportedOperationException. -
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 thegetControlPoints()call through which thisControlPointobject was obtained) plus the given vector.
-