|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutablePoints
Minimal interface that a changeable sequence of points must provide.
Method Summary | |
---|---|
void |
addPoint(int pos,
double x,
double y)
Inserts a point at the specified position. |
void |
removePoints(int pos,
int num)
Removes a subsequence of points. |
void |
setPoint(int i,
double x,
double y)
Sets the coordinates for the point at the given index. |
void |
transformPoints(AffineTransform t)
Modifies all points by applying the transform to them. |
Methods inherited from interface edu.umd.cs.piccolox.util.Points |
---|
getBounds, getPoint, getPointCount, getX, getY |
Method Detail |
---|
void setPoint(int i, double x, double y)
i
- index of pointx
- x component of the point's coordinatesy
- y component of the point's coordinatesvoid addPoint(int pos, double x, double y)
pos
- position at which to insert the pointx
- x component of the point's coordinatesy
- y component of the point's coordinatesvoid removePoints(int pos, int num)
pos
- position to start removing pointsnum
- number of points to removevoid transformPoints(AffineTransform t)
t
- transformto apply to the points
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |