Modifier and Type | Method and Description |
---|---|
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.
|
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 pointsCopyright © 1995–2013 Piccolo2D. All rights reserved.