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.8 2004/07/06 18:04:03 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- AbstractPathConstructor.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentX
protected double currentX
currentY
protected double currentY
AbstractPathConstructor
protected AbstractPathConstructor()
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)
Copyright © 2000-2004 FreeHEP, All Rights Reserved.