org.freehep.graphicsio.swf
Class SWFPathConstructor
java.lang.Object
|
+--org.freehep.graphicsio.AbstractPathConstructor
|
+--org.freehep.graphicsio.CubicToQuadPathConstructor
|
+--org.freehep.graphicsio.swf.SWFPathConstructor
- All Implemented Interfaces:
- PathConstructor, SWFConstants
- public class SWFPathConstructor
- extends CubicToQuadPathConstructor
- implements SWFConstants
- Version:
- $Id: SWFPathConstructor.java,v 1.5 2003/04/09 05:13:22 duns Exp $
- Author:
- Mark Donszelmann
Method Summary |
void |
closePath()
Closes the path by drawing a straight line to the last point which was
argument to move. |
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. |
void |
quad(double x1,
double y1,
double x2,
double y2)
Draws a quadratic bezier curve from the current point to (x2, y2) using
the control point (x1, y1) and make (x2, y2) the current point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWFPathConstructor
public SWFPathConstructor(Vector path,
int stroke,
int fill0,
int fill1)
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 CubicToQuadPathConstructor
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 CubicToQuadPathConstructor
IOException
quad
public void quad(double x1,
double y1,
double x2,
double y2)
throws IOException
- Description copied from interface:
PathConstructor
- Draws a quadratic bezier curve from the current point to (x2, y2) using
the control point (x1, y1) and make (x2, y2) the current point.
- Specified by:
quad
in interface PathConstructor
IOException
closePath
public void closePath()
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 CubicToQuadPathConstructor
IOException
Copyright © 2000-2003 FreeHEP, All Rights Reserved.