|
Java Eyes Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs101.awt.geom.PointIterator
This class provides a simple interface for listing all the knot
points in an java.awt.Shape.
| Constructor Summary | |
PointIterator(java.awt.Shape s)
Creates a PointIterator for the specified Shape. |
|
| Method Summary | |
boolean |
hasNext()
Test to see if the entire shape has been processed. |
boolean |
isStart(java.awt.geom.Point2D.Float pt)
Test to see if the supplied point is the same object as the current start point for the current path. |
java.awt.geom.Point2D.Float |
nextPoint()
Return the next point in the shape. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PointIterator(java.awt.Shape s)
PointIterator for the specified Shape.
s - the Shape to iterate over.| Method Detail |
public boolean hasNext()
true if all points in the shape have been returned.
false otherwise.public boolean isStart(java.awt.geom.Point2D.Float pt)
GeneralPath, or similar shape.
pt - The point to testpublic java.awt.geom.Point2D.Float nextPoint()
PathIterator to
distinguish points returned from a moveTo segments beyond the
first segment (which is guaranteed by Sun to be a moveTo).
|
Java Eyes Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||