Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
class: Polygon.PolygonPathIterator [javadoc | source]
java.lang.Object
   java.awt.Polygon$PolygonPathIterator

All Implemented Interfaces:
    PathIterator

Field Summary
 Polygon poly     
 AffineTransform transform     
 int index     
Constructor:
 public PolygonPathIterator(Polygon pg,
    AffineTransform at) 
Method from java.awt.Polygon$PolygonPathIterator Summary:
currentSegment,   currentSegment,   getWindingRule,   isDone,   next
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.Polygon$PolygonPathIterator Detail:
 public int currentSegment(float[] coords) 
    Returns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. A float array of length 2 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of float x, y coordinates. SEG_MOVETO and SEG_LINETO types return one point, and SEG_CLOSE does not return any points.
 public int currentSegment(double[] coords) 
    Returns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. A double array of length 2 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of double x, y coordinates. SEG_MOVETO and SEG_LINETO types return one point, and SEG_CLOSE does not return any points.
 public int getWindingRule() 
    Returns the winding rule for determining the interior of the path.
 public boolean isDone() 
    Tests if there are more points to read.
 public  void next() 
    Moves the iterator forwards, along the primary direction of traversal, to the next segment of the path when there are more points in that direction.