org.freehep.graphicsio.ps
Class PSPathConstructor
java.lang.Object
org.freehep.graphicsio.AbstractPathConstructor
org.freehep.graphicsio.QuadToCubicPathConstructor
org.freehep.graphicsio.ps.PSPathConstructor
- All Implemented Interfaces:
- PathConstructor
- public class PSPathConstructor
- extends QuadToCubicPathConstructor
- Version:
- $Id: PSPathConstructor.java,v 1.5 2005/01/01 07:35:01 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- PSPathConstructor.java
Method Summary |
void |
closePath(double x0,
double y0)
Closes the path by drawing a straight line to the last point which was
argument to move. |
void |
cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draws a cubic bezier curve from the current point to (x3, y3) using
the control points (x1, y1) and (x2, y2) and make (x3, y3)
the current point. |
protected String |
fixedPrecision(double d)
|
void |
line(double x,
double y)
Draws a line from the current point to (x,y) and make (x,y)
the current point. |
void |
move(double x,
double y)
Makes (x,y) the current point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSPathConstructor
public PSPathConstructor(PrintStream os,
boolean useProlog,
boolean intPrecision)
move
public void move(double x,
double y)
throws IOException
- Description copied from interface:
PathConstructor
- Makes (x,y) the current point.
- Specified by:
move
in interface PathConstructor
- Overrides:
move
in class QuadToCubicPathConstructor
- Throws:
IOException
line
public void line(double x,
double y)
throws IOException
- Description copied from interface:
PathConstructor
- Draws a line from the current point to (x,y) and make (x,y)
the current point.
- Specified by:
line
in interface PathConstructor
- Overrides:
line
in class QuadToCubicPathConstructor
- Throws:
IOException
cubic
public void cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
throws IOException
- Description copied from interface:
PathConstructor
- Draws a cubic bezier curve from the current point to (x3, y3) using
the control points (x1, y1) and (x2, y2) and make (x3, y3)
the current point.
- Specified by:
cubic
in interface PathConstructor
- Overrides:
cubic
in class QuadToCubicPathConstructor
- Throws:
IOException
closePath
public void closePath(double x0,
double y0)
throws IOException
- Description copied from interface:
PathConstructor
- Closes the path by drawing a straight line to the last point which was
argument to move.
- Specified by:
closePath
in interface PathConstructor
- Overrides:
closePath
in class QuadToCubicPathConstructor
- Throws:
IOException
fixedPrecision
protected String fixedPrecision(double d)
Copyright © 2000-2004 FreeHEP, All Rights Reserved.