yu.ac.bg.etf.javaqx.qswing.graphics
Class RoundRectangle.RoundRectanglePathIterator

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

protected static class RoundRectangle.RoundRectanglePathIterator
extends java.lang.Object
implements PathIterator

Round Rectangle Path Iterator.


Field Summary
 
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
RoundRectangle.RoundRectanglePathIterator(RoundRectangle r)
          Constructs new RoundRectanglePathIterator object.
 
Method Summary
 int currentSegment(int[] coords2)
          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
 

Constructor Detail

RoundRectangle.RoundRectanglePathIterator

public RoundRectangle.RoundRectanglePathIterator(RoundRectangle r)
Constructs new RoundRectanglePathIterator object.

Parameters:
r - the round rectangle
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[] coords2)
Returns the coordinates and type of the current path segment.

Specified by:
currentSegment in interface PathIterator
Parameters:
coords2 - 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.