public abstract class AbstractPathConstructor extends Object implements PathConstructor
Modifier and Type | Field and Description |
---|---|
protected double |
currentX |
protected double |
currentY |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPathConstructor() |
Modifier and Type | Method and Description |
---|---|
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) |
public void flush() throws IOException
PathConstructor
flush
in interface PathConstructor
IOException
public boolean addPath(Shape s) throws IOException
PathConstructor
addPath
in interface PathConstructor
IOException
public boolean addPath(Shape s, AffineTransform transform) throws IOException
PathConstructor
addPath
in interface PathConstructor
IOException
public static boolean addPath(PathConstructor out, Shape s, AffineTransform transform) throws IOException
IOException
public static boolean isEvenOdd(Shape s)
Copyright © 2014. All rights reserved.