Top Description Fields Constructors Methods
com.sun.javafx.geom

pack-priv Class QuadIterator

extends Object
implements PathIterator
Class Inheritance
All Implemented Interfaces
com.sun.javafx.geom.PathIterator
Imports
java.util.NoSuchElementException, com.sun.javafx.geom.transform.BaseTransform

A utility class to iterate over the path segments of a quadratic curve segment through the PathIterator interface.
Version
10 Feb 1997

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv QuadCurve2D
pack-priv BaseTransform

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
currentSegment(float[]
an array that holds the data returned from this method
coords
)

Implements com.sun.javafx.geom.PathIterator.currentSegment.

Returns the coordinates and type of the current path segment in the iteration.

public int
getWindingRule()

Implements com.sun.javafx.geom.PathIterator.getWindingRule.

Return the winding rule for determining the insideness of the path.

public boolean

Returns:

true if there are more points to read
isDone
()

Implements com.sun.javafx.geom.PathIterator.isDone.

Tests if there are more points to read.

public void
next()

Implements com.sun.javafx.geom.PathIterator.next.

Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
pack-priv int index
quadback to summary
pack-priv QuadCurve2D quad
transformback to summary
pack-priv BaseTransform transform

Constructor Detail

QuadIteratorback to summary
pack-priv QuadIterator(QuadCurve2D q, BaseTransform tx)

Method Detail

currentSegmentback to summary
public int currentSegment(float[] coords)

Implements com.sun.javafx.geom.PathIterator.currentSegment.

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, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. A float array of length 6 must be passed in and may 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 will return one point, SEG_QUADTO will return two points, SEG_CUBICTO will return 3 points and SEG_CLOSE will not return any points.

Parameters
coords:float[]

Doc from com.sun.javafx.geom.PathIterator.currentSegment.

an array that holds the data returned from this method

Returns:int

Doc from com.sun.javafx.geom.PathIterator.currentSegment.

the path-segment type of the current path segment.

Annotations
@Override
See Also
SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, SEG_CLOSE
getWindingRuleback to summary
public int getWindingRule()

Implements com.sun.javafx.geom.PathIterator.getWindingRule.

Return the winding rule for determining the insideness of the path.

Returns:int

Doc from com.sun.javafx.geom.PathIterator.getWindingRule.

the winding rule.

Annotations
@Override
See Also
WIND_EVEN_ODD, WIND_NON_ZERO
isDoneback to summary
public boolean isDone()

Implements com.sun.javafx.geom.PathIterator.isDone.

Tests if there are more points to read.

Returns:boolean

true if there are more points to read

Annotations
@Override
nextback to summary
public void next()

Implements com.sun.javafx.geom.PathIterator.next.

Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.

Annotations
@Override