FreeHEP API
Version v1.2

org.freehep.graphicsio.emf
Class EMFTag

java.lang.Object
  |
  +--org.freehep.util.io.Tag
        |
        +--org.freehep.graphicsio.emf.EMFTag
Direct Known Subclasses:
AbortPath, AlphaBlend, AngleArc, Arc, ArcTo, BeginPath, BitBlt, Chord, CloseFigure, CreateBrushIndirect, CreatePen, DeleteObject, Ellipse, EMFPolygon, EMFRectangle, EndPath, EOF, ExcludeClipRect, ExtCreateFontIndirectW, ExtCreatePen, ExtFloodFill, ExtSelectClipRgn, ExtTextOutA, ExtTextOutW, FillPath, FlattenPath, GDIComment, GradientFill, IntersectClipRect, LineTo, ModifyWorldTransform, MoveToEx, OffsetClipRgn, Pie, PolyBezier, PolyBezier16, PolyBezierTo, PolyBezierTo16, PolyDraw, PolyDraw16, Polygon16, Polyline, Polyline16, PolylineTo, PolylineTo16, PolyPolygon, PolyPolygon16, PolyPolyline, PolyPolyline16, RealizePalette, ResizePalette, RestoreDC, RoundRect, SaveDC, ScaleViewportExtEx, ScaleWindowExtEx, SelectClipPath, SelectObject, SelectPalette, SetArcDirection, SetBkColor, SetBkMode, SetBrushOrgEx, SetICMMode, SetMapMode, SetMapperFlags, SetMetaRgn, SetMiterLimit, SetPixelV, SetPolyFillMode, SetROP2, SetStretchBltMode, SetTextAlign, SetTextColor, SetViewportExtEx, SetViewportOrgEx, SetWindowExtEx, SetWindowOrgEx, SetWorldTransform, StretchDIBits, StrokeAndFillPath, StrokePath, WidenPath

public abstract class EMFTag
extends Tag

EMF specific tag, from which all other EMF Tags inherit.

Version:
$Id: EMFTag.java,v 1.2 2002/06/12 23:15:15 duns Exp $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
protected EMFTag(int id, int version)
          Constructs a EMFTag.
 
Method Summary
abstract  EMFTag read(int tagID, EMFInputStream emf, int len)
           
 Tag read(int tagID, TaggedInputStream input, int len)
          This implementation supports only the EMF Output format.
 String toString()
           
 void write(int tagID, EMFOutputStream emf)
          Writes the extra tag information to the outputstream in binary format.
 void write(int tagID, TaggedOutputStream output)
          This writes the information to the given output
 
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

EMFTag

protected EMFTag(int id,
                 int version)
Constructs a EMFTag.

Parameters:
id - id of the element
version - emf version in which this element was first supported
Method Detail

read

public Tag read(int tagID,
                TaggedInputStream input,
                int len)
         throws IOException
This implementation supports only the EMF Output format.

Specified by:
read in class Tag
IOException

read

public abstract EMFTag read(int tagID,
                            EMFInputStream emf,
                            int len)
                     throws IOException
IOException

write

public void write(int tagID,
                  TaggedOutputStream output)
           throws IOException
Description copied from class: Tag
This writes the information to the given output

Specified by:
write in class Tag
IOException

write

public void write(int tagID,
                  EMFOutputStream emf)
           throws IOException
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.

Parameters:
tagID - id of the tag
emf - Binary CGM output stream
IOException

toString

public String toString()
Specified by:
toString in class Tag
Returns:
a description of the tagName and tagID

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.