yu.ac.bg.etf.javaqx.qswing.graphics
Class Rectangle.RectanglePathIterator

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

protected static class Rectangle.RectanglePathIterator
extends java.lang.Object
implements PathIterator

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
Rectangle.RectanglePathIterator(Rectangle rectangle)
          Constructs new RectanglePathIterator 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
 

Constructor Detail

Rectangle.RectanglePathIterator

public Rectangle.RectanglePathIterator(Rectangle rectangle)
Constructs new RectanglePathIterator object.

Parameters:
rectangle - the 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[] 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.