|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointSet2D
A set of points. All points within the set are instances of Point2D. The most direct implementation of PointSet2D is PointArray2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
void |
addPoint(Point2D point)
Adds a new point to the point set. |
void |
addPoints(Collection<? extends Point2D> points)
Add a series of points |
PointSet2D |
clip(Box2D box)
Returns a new point set containing only points located within the box. |
int |
getPointNumber()
Returns the number of points in the set. |
Collection<Point2D> |
getPoints()
Returns an iterator on the internal point collection. |
PointSet2D |
transform(AffineTransform2D trans)
Transforms the point set by returning a new point set containing each transformed point. |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
getBuffer, transform |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, draw, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void addPoint(Point2D point)
point
- the initial point in the setvoid addPoints(Collection<? extends Point2D> points)
points
- an array of pointsCollection<Point2D> getPoints()
getPoints
in interface PointShape2D
int getPointNumber()
getPointNumber
in interface PointShape2D
PointSet2D transform(AffineTransform2D trans)
transform
in interface PointShape2D
transform
in interface Shape2D
trans
- an affine transform
PointSet2D clip(Box2D box)
clip
in interface PointShape2D
clip
in interface Shape2D
box
- the clipping box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |