org.freehep.graphicsio.emf.gdi
Class AbstractExtTextOut

java.lang.Object
  extended by org.freehep.util.io.Tag
      extended by org.freehep.graphicsio.emf.EMFTag
          extended by org.freehep.graphicsio.emf.gdi.AbstractExtTextOut
All Implemented Interfaces:
EMFConstants, GDIObject
Direct Known Subclasses:
ExtTextOutA, ExtTextOutW

public abstract class AbstractExtTextOut
extends EMFTag
implements EMFConstants

Abstraction of commonality between the ExtTextOutA and ExtTextOutW tags.

Version:
$Id: ExtTextOutW.java 10140 2006-12-07 07:50:41Z duns $
Author:
Daniel Noll (daniel@nuix.com)

Field Summary
 
Fields inherited from class org.freehep.graphicsio.emf.EMFTag
logger
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
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, GDICOMMENT_BEGINGROUP, GDICOMMENT_ENDGROUP, GDICOMMENT_IDENTIFIER, GDICOMMENT_MULTIFORMATS, GDICOMMENT_UNICODE_END, GDICOMMENT_UNICODE_STRING, GDICOMMENT_WINDOWS_METAFILE, 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
protected AbstractExtTextOut(int id, int version, java.awt.Rectangle bounds, int mode, float xScale, float yScale)
          Constructs the tag.
 
Method Summary
abstract  Text getText()
           
 void render(EMFRenderer renderer)
          displays the tag using the renderer
 java.lang.String toString()
           
 void write(int tagID, EMFOutputStream emf)
          Writes the extra tag information to the outputstream in binary format.
 
Methods inherited from class org.freehep.graphicsio.emf.EMFTag
read, read, write
 
Methods inherited from class org.freehep.util.io.Tag
getName, getTag, getTagType, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractExtTextOut

protected AbstractExtTextOut(int id,
                             int version,
                             java.awt.Rectangle bounds,
                             int mode,
                             float xScale,
                             float yScale)
Constructs the tag.

Parameters:
id - id of the element
version - emf version in which this element was first supported
bounds - text boundary
mode - text mode
xScale - horizontal scale factor
yScale - vertical scale factor
Method Detail

getText

public abstract Text getText()

toString

public java.lang.String toString()
Overrides:
toString in class EMFTag
Returns:
a description of the tagName and tagID

write

public void write(int tagID,
                  EMFOutputStream emf)
           throws java.io.IOException
Description copied from class: EMFTag
Writes the extra tag information to the outputstream in binary format. This implementation writes nothing, but concrete tags may override this method. This method is called just after the TagHeader is written.

Overrides:
write in class EMFTag
Parameters:
tagID - id of the tag
emf - Binary CGM output stream
Throws:
java.io.IOException - thrown by EMFOutputStream

render

public void render(EMFRenderer renderer)
displays the tag using the renderer

Specified by:
render in interface GDIObject
Overrides:
render in class EMFTag
Parameters:
renderer - EMFRenderer storing the drawing session data


Copyright © 2000-2007 FreeHEP. All Rights Reserved.