Top Inners Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class PathIteratorHelper

extends Object
Class Inheritance
Imports
com.sun.javafx.geom.PathIterator

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private float[]
f

private PathIterator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the path-segment type of the current path segment.
currentSegment
(PathIteratorHelper.Struct struct)

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

public int
getWindingRule()

Returns the winding rule for determining the interior of the path.

public boolean

Returns:

true if all the segments have been read; false otherwise.
isDone
()

Tests if the iteration is complete.

public void
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

fback to summary
private float[] f
itrback to summary
private PathIterator itr

Constructor Detail

PathIteratorHelperback to summary
public PathIteratorHelper(PathIterator itr)

Method Detail

currentSegmentback to summary
public int currentSegment(PathIteratorHelper.Struct struct)

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 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 returns one point, SEG_QUADTO returns two points, SEG_CUBICTO returns 3 points and SEG_CLOSE does not return any points.

Returns:int

the path-segment type of the current path segment.

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

Returns the winding rule for determining the interior of the path.

isDoneback to summary
public boolean isDone()

Tests if the iteration is complete.

Returns:boolean

true if all the segments have been read; false otherwise.

nextback to summary
public void 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.

com.sun.javafx.tk.quantum back to summary

public final Class PathIteratorHelper.Struct

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv float
pack-priv float
pack-priv float
pack-priv float
pack-priv float
pack-priv float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

f0back to summary
pack-priv float f0
f1back to summary
pack-priv float f1
f2back to summary
pack-priv float f2
f3back to summary
pack-priv float f3
f4back to summary
pack-priv float f4
f5back to summary
pack-priv float f5

Constructor Detail

Structback to summary
public Struct()