| 1 |
// Copyright 2002 FreeHEP. |
| 2 |
package org.freehep.graphicsio.pdf; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
import org.freehep.graphicsio.QuadToCubicPathConstructor; |
| 7 |
|
| 8 |
/** |
| 9 |
* @author Mark Donszelmann |
| 10 |
* @version $Id: freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFPathConstructor.java f493ff6e61b2 2005/12/01 18:46:43 duns $ |
| 11 |
*/ |
| 12 |
public class PDFPathConstructor extends QuadToCubicPathConstructor { |
| 13 |
private PDFStream stream; |
| 14 |
|
| 15 |
public PDFPathConstructor(PDFStream stream) { |
| 16 |
super(); |
| 17 |
this.stream = stream; |
| 18 |
} |
| 19 |
|
| 20 |
public void move(double x, double y) throws IOException { |
| 21 |
stream.move(x, y); |
| 22 |
super.move(x, y); |
| 23 |
} |
| 24 |
|
| 25 |
public void line(double x, double y) throws IOException { |
| 26 |
stream.line(x, y); |
| 27 |
super.line(x, y); |
| 28 |
} |
| 29 |
|
| 30 |
public void cubic(double x1, double y1, double x2, double y2, double x3, |
| 31 |
double y3) throws IOException { |
| 32 |
stream.cubic(x1, y1, x2, y2, x3, y3); |
| 33 |
super.cubic(x1, y1, x2, y2, x3, y3); |
| 34 |
} |
| 35 |
|
| 36 |
public void closePath(double x0, double y0) throws IOException { |
| 37 |
stream.closePath(); |
| 38 |
super.closePath(x0, y0); |
| 39 |
} |
| 40 |
} |