public abstract class EdgeIterator
extends java.lang.Object
Shape
edges.
Note: This class is not thread safe.Constructor and Description |
---|
EdgeIterator() |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Begin iteration
|
protected abstract void |
beginIteration() |
void |
end()
End iteration
|
protected abstract void |
endIteration() |
abstract LineSegment |
getEdgeLineSegment()
Returns the
LineSegment of the edge |
abstract float |
getPointAX()
Returns the x coordinate of the first point in the edge
|
abstract float |
getPointAY()
Returns the y coordinate of the first point in the edge
|
abstract float |
getPointBX()
Returns the x coordinate of the second point in the edge
|
abstract float |
getPointBY()
Returns the y coordinate of the second point in the edge
|
abstract boolean |
hasNext()
Returns if there is another edge to iterate over
|
void |
next()
Moves the iterator to the next edge
|
protected abstract void |
nextEdge() |
public void begin()
public void end()
public void next()
protected abstract void beginIteration()
protected abstract void endIteration()
protected abstract void nextEdge()
public abstract boolean hasNext()
public abstract float getPointAX()
public abstract float getPointAY()
public abstract float getPointBX()
public abstract float getPointBY()
public abstract LineSegment getEdgeLineSegment()
LineSegment
of the edge