att.grappa
Class GrappaPathIterator

java.lang.Object
  extended by att.grappa.GrappaPathIterator
All Implemented Interfaces:
java.awt.geom.PathIterator

public class GrappaPathIterator
extends java.lang.Object
implements java.awt.geom.PathIterator

This class provides a PathIterator for GrappaNexus shapes.

Version:
1.2, 21 Aug 2005; Copyright 1996 - 2005 by AT&T Corp.
Author:
John Mocenigo, Research @ AT&T Labs

Field Summary
(package private)  java.awt.geom.AffineTransform affine
           
(package private)  java.awt.geom.PathIterator areaIterator
           
(package private)  GrappaNexus grappaNexus
           
(package private)  double[] pts
           
(package private)  java.awt.geom.PathIterator shapeIterator
           
(package private)  int type
           
 
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
GrappaPathIterator(GrappaNexus shape)
          Constructs a new GrappaPathIterator given a GrappaNexus.
GrappaPathIterator(GrappaNexus shape, java.awt.geom.AffineTransform at)
          Constructs a new GrappaPathIterator given a GrappaNexus and an optional AffineTransform.
 
Method Summary
 int currentSegment(double[] coords)
           
 int currentSegment(float[] coords)
           
 int getWindingRule()
          Return the winding rule for determining the interior of the path.
 boolean isDone()
           
 void next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grappaNexus

GrappaNexus grappaNexus

affine

java.awt.geom.AffineTransform affine

shapeIterator

java.awt.geom.PathIterator shapeIterator

areaIterator

java.awt.geom.PathIterator areaIterator

pts

double[] pts

type

int type
Constructor Detail

GrappaPathIterator

public GrappaPathIterator(GrappaNexus shape)
Constructs a new GrappaPathIterator given a GrappaNexus.


GrappaPathIterator

public GrappaPathIterator(GrappaNexus shape,
                          java.awt.geom.AffineTransform at)
Constructs a new GrappaPathIterator given a GrappaNexus and an optional AffineTransform.

Method Detail

currentSegment

public int currentSegment(double[] coords)
Specified by:
currentSegment in interface java.awt.geom.PathIterator

currentSegment

public int currentSegment(float[] coords)
Specified by:
currentSegment in interface java.awt.geom.PathIterator

getWindingRule

public int getWindingRule()
Return the winding rule for determining the interior of the path.

Specified by:
getWindingRule in interface java.awt.geom.PathIterator

isDone

public boolean isDone()
Specified by:
isDone in interface java.awt.geom.PathIterator

next

public void next()
Specified by:
next in interface java.awt.geom.PathIterator