FreeHEP API
Version current

org.freehep.graphicsio.swf
Class SWFPathConstructor

java.lang.Object
  extended byorg.freehep.graphicsio.AbstractPathConstructor
      extended byorg.freehep.graphicsio.CubicToQuadPathConstructor
          extended byorg.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

Field Summary
 
Fields inherited from class org.freehep.graphicsio.AbstractPathConstructor
currentX, currentY
 
Fields inherited from interface org.freehep.graphicsio.swf.SWFConstants
CONTROL, DEFAULT_VERSION, DEFINITION, LANGUAGE_JAPANESE, LANGUAGE_KOREAN, LANGUAGE_LATIN, LANGUAGE_SIMPLIFIED_CHINESE, LANGUAGE_TRADITIONAL_CHINESE, TWIPS
 
Constructor Summary
SWFPathConstructor(Vector path, int stroke, int fill0, int fill1)
           
SWFPathConstructor(Vector path, int stroke, int fill0, int fill1, double resolution)
           
 
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 org.freehep.graphicsio.CubicToQuadPathConstructor
cubic, intersect, main, midPoint, quadratify
 
Methods inherited from class org.freehep.graphicsio.AbstractPathConstructor
addPath, addPath, addPath, flush, isEvenOdd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWFPathConstructor

public SWFPathConstructor(Vector path,
                          int stroke,
                          int fill0,
                          int fill1)

SWFPathConstructor

public SWFPathConstructor(Vector path,
                          int stroke,
                          int fill0,
                          int fill1,
                          double resolution)
Method Detail

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.