public class FromWGS84PathIterator
extends java.lang.Object
implements com.codename1.ui.geom.PathIterator
| Constructor and Description | 
|---|
| FromWGS84PathIterator(com.codename1.ui.geom.PathIterator source,
                     com.codename1.maps.Projection projection) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | currentSegment(double[] coords)Returns the coordinates of the next point(s), as well as the type of line segment. | 
| int | currentSegment(float[] coords)Returns the coordinates of the next point(s), as well as the type of line segment. | 
| int | getWindingRule()Returns the winding rule to determine which points are inside this path. | 
| boolean | isDone()Tests if the iterator is exhausted. | 
| void | next()Advance to the next segment in the iteration. | 
public FromWGS84PathIterator(com.codename1.ui.geom.PathIterator source,
                             com.codename1.maps.Projection projection)
public int getWindingRule()
com.codename1.ui.geom.PathIteratorgetWindingRule in interface com.codename1.ui.geom.PathIteratorPathIterator.WIND_EVEN_ODD or PathIterator.WIND_NON_ZERO).public boolean isDone()
com.codename1.ui.geom.PathIteratorisDone in interface com.codename1.ui.geom.PathIteratorpublic void next()
com.codename1.ui.geom.PathIteratorPathIterator.isDone() returns true.next in interface com.codename1.ui.geom.PathIteratorpublic int currentSegment(float[] coords)
com.codename1.ui.geom.PathIteratorfloat[6], to accommodate up to three 
 (x,y) point pairs (although if you know the iterator is flat, you can probably 
 get by with a float[2]). If the returned type is PathIterator.SEG_MOVETO or PathIterator.SEG_LINETO, 
 the first point in the array is modified; if the returned type is PathIterator.SEG_QUADTO, 
 the first two points are modified; if the returned type is PathIterator.SEG_CUBICTO, all three points are
 modified; and if the returned type is PathIterator.SEG_CLOSE, the array is untouched.currentSegment in interface com.codename1.ui.geom.PathIteratorcoords - the array to place the point coordinates inPathIterator.SEG_MOVETO, PathIterator.SEG_LINETO, PathIterator.SEG_QUADTO, PathIterator.SEG_CUBICTO, PathIterator.SEG_CLOSE).public int currentSegment(double[] coords)
com.codename1.ui.geom.PathIteratordouble[6], to accommodate up to three 
 (x,y) point pairs (although if you know the iterator is flat, you can probably 
 get by with a double[2]). If the returned type is PathIterator.SEG_MOVETO or PathIterator.SEG_LINETO, 
 the first point in the array is modified; if the returned type is PathIterator.SEG_QUADTO, 
 the first two points are modified; if the returned type is PathIterator.SEG_CUBICTO, all three points are
 modified; and if the returned type is PathIterator.SEG_CLOSE, the array is untouched.currentSegment in interface com.codename1.ui.geom.PathIteratorcoords - the array to place the point coordinates inPathIterator.SEG_MOVETO, PathIterator.SEG_LINETO, PathIterator.SEG_QUADTO, PathIterator.SEG_CUBICTO, PathIterator.SEG_CLOSE).