FreeHEP API
Version v1.2

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

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)
           
 
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 org.freehep.graphicsio.CubicToQuadPathConstructor
cubic, main
 
Methods inherited from class org.freehep.graphicsio.AbstractPathConstructor
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)
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
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

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.