FreeHEP API
Version current

org.freehep.graphicsio
Class AbstractPathConstructor

java.lang.Object
  extended byorg.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.8 2004/07/06 18:04:03 duns Exp $
Author:
Mark Donszelmann
Source Code:
AbstractPathConstructor.java

Field Summary
protected  double currentX
           
protected  double currentY
           
 
Constructor Summary
protected AbstractPathConstructor()
           
 
Method Summary
static boolean addPath(PathConstructor out, Shape s, AffineTransform transform)
           
 boolean addPath(Shape s)
          Adds the points of the shape using path construction operators.
 boolean addPath(Shape s, AffineTransform transform)
          Adds the points of the shape using path construction operators, using the given transform.
 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
Throws:
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.
Throws:
IOException

addPath

public boolean addPath(Shape s,
                       AffineTransform transform)
                throws IOException
Description copied from interface: PathConstructor
Adds the points of the shape using path construction operators, using the given transform. 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.
Throws:
IOException

addPath

public static boolean addPath(PathConstructor out,
                              Shape s,
                              AffineTransform transform)
                       throws IOException
Throws:
IOException

isEvenOdd

public static boolean isEvenOdd(Shape s)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.