FreeHEP API
Version current

org.freehep.graphicsio.emf
Class EMFPathConstructor

java.lang.Object
  extended byorg.freehep.graphicsio.AbstractPathConstructor
      extended byorg.freehep.graphicsio.QuadToCubicPathConstructor
          extended byorg.freehep.graphicsio.emf.EMFPathConstructor
All Implemented Interfaces:
EMFConstants, PathConstructor

public class EMFPathConstructor
extends QuadToCubicPathConstructor
implements EMFConstants

Version:
$Id: EMFPathConstructor.java,v 1.9 2004/05/04 17:20:56 duns Exp $
Author:
Mark Donszelmann
Source Code:
EMFPathConstructor.java

Field Summary
 
Fields inherited from class org.freehep.graphicsio.AbstractPathConstructor
currentX, currentY
 
Fields inherited from interface org.freehep.graphicsio.emf.EMFConstants
AC_SRC_ALPHA, AC_SRC_OVER, AD_CLOCKWISE, AD_COUNTERCLOCKWISE, ALTERNATE, BI_BITFIELDS, BI_JPEG, BI_PNG, BI_RGB, BI_RLE4, BI_RLE8, BKG_OPAQUE, BKG_TRANSPARENT, BLACKONWHITE, BS_DIBPATTERN, BS_DIBPATTERN8X8, BS_DIBPATTERNPT, BS_HATCHED, BS_HOLLOW, BS_INDEXED, BS_MONOPATTERN, BS_NULL, BS_PATTERN, BS_PATTERN8X8, BS_SOLID, COLORONCOLOR, DIB_PAL_COLORS, DIB_RGB_COLORS, ETO_CLIPPED, ETO_GLYPH_INDEX, ETO_IGNORELANGUAGE, ETO_NUMERICSLATIN, ETO_NUMERICSLOCAL, ETO_OPAQUE, ETO_PDY, ETO_RTLREADING, FLOODFILLBORDER, FLOODFILLSURFACE, FW_BOLD, FW_DONTCARE, FW_EXTRABOLD, FW_EXTRALIGHT, FW_HEAVY, FW_LIGHT, FW_MEDIUM, FW_NORMAL, FW_SEMIBOLD, FW_THIN, GM_ADVANCED, GM_COMPATIBLE, GRADIENT_FILL_RECT_H, GRADIENT_FILL_RECT_V, GRADIENT_FILL_TRIANGLE, HALFTONE, HS_BDIAGONAL, HS_CROSS, HS_DIAGCROSS, HS_FDIAGONAL, HS_HORIZONTAL, HS_VERTICAL, ICM_DONE_OUTSIDEDC, ICM_OFF, ICM_ON, ICM_QUERY, MM_ANISOTROPIC, MM_HIENGLISH, MM_HIMETRIC, MM_ISOTROPIC, MM_LOENGLISH, MM_LOMETRIC, MM_TEXT, MM_TWIPS, MWT_IDENTITY, MWT_LEFTMULTIPLY, MWT_RIGHTMULTIPLY, PAN_ANY, PAN_NO_FIT, PS_COSMETIC, PS_DASH, PS_DASHDOT, PS_DASHDOTDOT, PS_DOT, PS_ENDCAP_FLAT, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_GEOMETRIC, PS_INSIDEFRAME, PS_JOIN_BEVEL, PS_JOIN_MITER, PS_JOIN_ROUND, PS_NULL, PS_SOLID, PS_USERSTYLE, PT_BEZIERTO, PT_CLOSEFIGURE, PT_LINETO, PT_MOVETO, R2_BLACK, R2_COPYPEN, R2_MASKNOTPEN, R2_MASKPEN, R2_MASKPENNOT, R2_MERGENOTPEN, R2_MERGEPEN, R2_MERGEPENNOT, R2_NOP, R2_NOT, R2_NOTCOPYPEN, R2_NOTMASKPEN, R2_NOTMERGEPEN, R2_NOTXORPEN, R2_WHITE, R2_XORPEN, RGN_AND, RGN_COPY, RGN_DIFF, RGN_MAX, RGN_MIN, RGN_OR, RGN_XOR, SRCCOPY, STRETCH_ANDSCANS, STRETCH_DELETESCANS, STRETCH_HALFTONE, STRETCH_ORSCANS, TA_BASELINE, TA_BOTTOM, TA_CENTER, TA_LEFT, TA_NOUPDATECP, TA_RIGHT, TA_RTLREADING, TA_TOP, TA_UPDATECP, TWIPS, UNITS_PER_PIXEL, WHITEONBLACK, WINDING
 
Constructor Summary
EMFPathConstructor(EMFOutputStream os, Rectangle imageBounds)
           
 
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.
 void flush()
          Flushes any cached info to the output file.
 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.
protected  int toUnit(double d)
           
 
Methods inherited from class org.freehep.graphicsio.QuadToCubicPathConstructor
quad
 
Methods inherited from class org.freehep.graphicsio.AbstractPathConstructor
addPath, addPath, addPath, isEvenOdd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFPathConstructor

public EMFPathConstructor(EMFOutputStream os,
                          Rectangle imageBounds)
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 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

flush

public void flush()
           throws IOException
Description copied from interface: PathConstructor
Flushes any cached info to the output file. The path is complete at this point.

Specified by:
flush in interface PathConstructor
Overrides:
flush in class AbstractPathConstructor
Throws:
IOException

toUnit

protected int toUnit(double d)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.