|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Points
Interface for a sequence of points.
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getBounds(java.awt.geom.Rectangle2D dst)
Returns the bounds of all the points taken as a whole. |
java.awt.geom.Point2D |
getPoint(int i,
java.awt.geom.Point2D dst)
Returns a point representation of the coordinates at the given index. |
int |
getPointCount()
Returns the number of points in the sequence. |
double |
getX(int i)
Returns the x component of the point at the given index. |
double |
getY(int i)
Returns the y component of the point at the given index. |
Method Detail |
---|
int getPointCount()
double getX(int i)
i
- index of desired point
double getY(int i)
i
- index of desired point
java.awt.geom.Point2D getPoint(int i, java.awt.geom.Point2D dst)
i
- index of desired pointdst
- output parameter into which the point's details will be
populated, if null a new one will be created.
java.awt.geom.Rectangle2D getBounds(java.awt.geom.Rectangle2D dst)
dst
- output parameter to store bounds into, if null a new rectangle
will be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |