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 java.lang.Object
- implements PathConstructor
Implements some of the PathConstructor functionality
- Version:
- $Id: AbstractPathConstructor.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Method Summary |
static boolean |
addPath(PathConstructor out,
java.awt.Shape s,
java.awt.geom.AffineTransform transform)
|
boolean |
addPath(java.awt.Shape s)
Adds the points of the shape using path construction
operators. |
boolean |
addPath(java.awt.Shape s,
java.awt.geom.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(java.awt.Shape s)
|
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 java.io.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:
java.io.IOException
addPath
public boolean addPath(java.awt.Shape s)
throws java.io.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:
java.io.IOException
addPath
public boolean addPath(java.awt.Shape s,
java.awt.geom.AffineTransform transform)
throws java.io.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:
java.io.IOException
addPath
public static boolean addPath(PathConstructor out,
java.awt.Shape s,
java.awt.geom.AffineTransform transform)
throws java.io.IOException
- Throws:
java.io.IOException
isEvenOdd
public static boolean isEvenOdd(java.awt.Shape s)
Copyright © 2000-2007 FreeHEP. All Rights Reserved.