FreeHEP API
Version current

org.freehep.graphicsio.emf
Class EMFTag

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.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.3 2003/12/01 16:54:18 duns Exp $
Author:
Mark Donszelmann
Source Code:
EMFTag.java

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 reads the information from the given input and returns a new Tag
 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
Description copied from class: Tag
This reads the information from the given input and returns a new Tag

Specified by:
read in class Tag
Throws:
IOException

read

public abstract EMFTag read(int tagID,
                            EMFInputStream emf,
                            int len)
                     throws IOException
Throws:
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
Throws:
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
Throws:
IOException

toString

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.