Package com.jogamp.graph.geom.plane
Class Path2F.Iterator
- java.lang.Object
-
- com.jogamp.graph.geom.plane.Path2F.Iterator
-
-
Constructor Summary
Constructors Constructor Description Iterator(Path2F path, AffineTransform at)
Constructs a new GeneralPath.Iterator for given general path and transformation
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Path2F.SegmentType
currentSegment(float[] coords)
Path2F.SegmentType
getType()
Return current segment typeWinding
getWinding()
Compute the general winding of the verticesWindingRule
getWindingRule()
Return theWindingRule
setboolean
hasNext()
Returns true if the iteration has more elements.int
index()
Return thepoints()
index for the current segment.Path2F.SegmentType
next()
Returns the current segment type in the iteration, then moving to the next path segment.float[]
points()
Returns reference of the point array covering the whole iteration of Path2D, useindex()
to access the current point.
-
-
-
Constructor Detail
-
Iterator
public Iterator(Path2F path, AffineTransform at)
Constructs a new GeneralPath.Iterator for given general path and transformation- Parameters:
path
- - the source GeneralPath objectat
- - the AffineTransform object to apply rectangle path
-
-
Method Detail
-
getWindingRule
public WindingRule getWindingRule()
Return theWindingRule
set
-
getWinding
public Winding getWinding()
Compute the general winding of the vertices- Returns:
- CCW or CW
Winding
-
points
public float[] points()
Returns reference of the point array covering the whole iteration of Path2D, useindex()
to access the current point.
-
index
public int index()
Return thepoints()
index for the current segment.
-
getType
public Path2F.SegmentType getType()
Return current segment type
-
currentSegment
@Deprecated public Path2F.SegmentType currentSegment(float[] coords)
Return the current segment type and copies the current segment's points to given storage
-
hasNext
public boolean hasNext()
Returns true if the iteration has more elements.
-
next
public Path2F.SegmentType next()
Returns the current segment type in the iteration, then moving to the next path segment.
-
-