|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.awt.geom.ShapeLineIterator
Abstracts a PathIterator into a line iterator. Get lines instead of points. Also uses the standard collection method names, like next() and hasNext(), instead of the ones in PathIterator.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.3-1.0.0, Jul 17 1999, JH Created class - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
ShapeLineIterator(PathIterator it)
Construct a line iterator from the specified path iterator. |
|
ShapeLineIterator(Shape s)
Construct a line iterator from the bounding points of the specified shape. |
|
ShapeLineIterator(Shape s,
AffineTransform tx)
Construct a line iterator from the bounding points of the specified shape, applying the transform to the bounding points. |
Method Summary | |
boolean |
hasNext()
|
boolean |
isDone()
|
Line2D |
next()
Get the next line. |
Line2D |
next(Line2D line)
Get the next line, using the specified line as storage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeLineIterator(PathIterator it)
public ShapeLineIterator(Shape s)
public ShapeLineIterator(Shape s, AffineTransform tx)
Method Detail |
public boolean isDone()
public boolean hasNext()
public Line2D next()
public Line2D next(Line2D line)
line
- is used to store the next line, previous data will
be overwritten.
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |