Class RMPathIterator
java.lang.Object
com.inductiveautomation.rm.graphics.RMPathIterator
- All Implemented Interfaces:
PathIterator
An implementation of path iterator for RMPath.
-
Field Summary
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
ConstructorsConstructorDescriptionRMPathIterator
(RMPath path, AffineTransform aTransform) Creates a new path iterator for given path. -
Method Summary
Modifier and TypeMethodDescriptionint
currentSegment
(double[] coords) Returns the current segment's segment type and segment points (by reference).int
currentSegment
(float[] coords) Returns the current segment's segment type and segment points (by reference) as floats.int
Returns the path winding rule.boolean
isDone()
Returns whether path iterator is done.void
next()
Increments path iterator to the next segment.
-
Constructor Details
-
RMPathIterator
Creates a new path iterator for given path.
-
-
Method Details
-
currentSegment
public int currentSegment(double[] coords) Returns the current segment's segment type and segment points (by reference).- Specified by:
currentSegment
in interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) Returns the current segment's segment type and segment points (by reference) as floats.- Specified by:
currentSegment
in interfacePathIterator
-
getWindingRule
public int getWindingRule()Returns the path winding rule.- Specified by:
getWindingRule
in interfacePathIterator
-
isDone
public boolean isDone()Returns whether path iterator is done.- Specified by:
isDone
in interfacePathIterator
-
next
public void next()Increments path iterator to the next segment.- Specified by:
next
in interfacePathIterator
-