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.7 2004/12/30 07:41:36 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- SWFPathConstructor.java
Method Summary |
void |
closePath(double xd0,
double yd0)
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)
SWFPathConstructor
public SWFPathConstructor(Vector path,
int stroke,
int fill0,
int fill1,
double resolution)
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
- 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 CubicToQuadPathConstructor
- Throws:
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
- Throws:
IOException
closePath
public void closePath(double xd0,
double yd0)
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
- Throws:
IOException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.