yu.ac.bg.etf.javaqx.qswing.graphics
Class Ellipse.EllipsePathIterator

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.graphics.Ellipse.EllipsePathIterator
All Implemented Interfaces:
PathIterator
Enclosing class:
Ellipse

protected static class Ellipse.EllipsePathIterator
extends java.lang.Object
implements PathIterator

Ellipse Path Iterator.


Field Summary
protected  int iteration
           
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.graphics.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
Ellipse.EllipsePathIterator(Ellipse ellipse)
          Constructs new EllipsePathIterator object.
 
Method Summary
 int currentSegment(int[] coords)
          Returns the coordinates and type of the current path segment.
 int getWindingRule()
          Returns the winding rule.
 boolean isDone()
          Returns true if the iteration is complete.
 void next()
          Moves the iterator to the next segment of the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iteration

protected int iteration
Constructor Detail

Ellipse.EllipsePathIterator

public Ellipse.EllipsePathIterator(Ellipse ellipse)
Constructs new EllipsePathIterator object.

Parameters:
ellipse - Ellipse
Method Detail

getWindingRule

public int getWindingRule()
Returns the winding rule.

Specified by:
getWindingRule in interface PathIterator
Returns:
the winding rule

isDone

public boolean isDone()
Returns true if the iteration is complete.

Specified by:
isDone in interface PathIterator
Returns:
true if the iteration is complete

next

public void next()
Moves the iterator to the next segment of the path.

Specified by:
next in interface PathIterator

currentSegment

public int currentSegment(int[] coords)
Returns the coordinates and type of the current path segment.

Specified by:
currentSegment in interface PathIterator
Parameters:
coords - an array of length 6 that can be used to store the coordinates of the points
Returns:
the path-segment type of the current path segment.


Copyright © 2007 ETF and contributors. All Rights Reserved.