FreeHEP API
Version v1.2

org.freehep.graphicsio
Class AbstractPathConstructor

java.lang.Object
  |
  +--org.freehep.graphicsio.AbstractPathConstructor
All Implemented Interfaces:
PathConstructor
Direct Known Subclasses:
CubicToQuadPathConstructor, QuadToCubicPathConstructor

public abstract class AbstractPathConstructor
extends Object
implements PathConstructor

Implements some of the PathConstructor functionality

Version:
$Id: AbstractPathConstructor.java,v 1.6 2003/04/25 23:12:45 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected  double currentX
           
protected  double currentY
           
 
Constructor Summary
protected AbstractPathConstructor()
           
 
Method Summary
static boolean addPath(PathConstructor out, Shape s)
           
 boolean addPath(Shape s)
          Adds the points of the shape using path construction operators.
 void flush()
          Flushes any cached info to the output file.
static boolean isEvenOdd(Shape s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.freehep.graphicsio.PathConstructor
closePath, cubic, line, move, quad
 

Field Detail

currentX

protected double currentX

currentY

protected double currentY
Constructor Detail

AbstractPathConstructor

protected AbstractPathConstructor()
Method Detail

flush

public void flush()
           throws IOException
Description copied from interface: PathConstructor
Flushes any cached info to the output file. The path is complete at this point.

Specified by:
flush in interface PathConstructor
IOException

addPath

public boolean addPath(Shape s)
                throws IOException
Description copied from interface: PathConstructor
Adds the points of the shape using path construction operators. The path is neither stroked nor filled.

Specified by:
addPath in interface PathConstructor
Returns:
true if even-odd winding rule should be used, false if non-zero winding rule should be used.
IOException

addPath

public static boolean addPath(PathConstructor out,
                              Shape s)
                       throws IOException
IOException

isEvenOdd

public static boolean isEvenOdd(Shape s)

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.