org.freehep.graphicsio.emf
Class EMFTag
java.lang.Object
org.freehep.util.io.Tag
org.freehep.graphicsio.emf.EMFTag
- All Implemented Interfaces:
- GDIObject
- Direct Known Subclasses:
- AbortPath, AbstractArc, AbstractClipPath, AbstractExtTextOut, AbstractPolygon, AbstractPolyPolygon, AlphaBlend, AngleArc, BeginPath, BitBlt, CloseFigure, CreateBrushIndirect, CreateDIBPatternBrushPt, CreatePen, DeleteObject, Ellipse, EMFRectangle, EndPath, EOF, ExcludeClipRect, ExtCreateFontIndirectW, ExtCreatePen, ExtFloodFill, FillPath, FlattenPath, GDIComment, GradientFill, IntersectClipRect, LineTo, ModifyWorldTransform, MoveToEx, OffsetClipRgn, PolyDraw, PolyDraw16, RealizePalette, ResizePalette, RestoreDC, RoundRect, SaveDC, ScaleViewportExtEx, ScaleWindowExtEx, 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 org.freehep.util.io.Tag
- implements GDIObject
EMF specific tag, from which all other EMF Tags inherit.
- Version:
- $Id: EMFTag.java 10367 2007-01-22 19:26:48Z duns $
- Author:
- Mark Donszelmann
Field Summary |
protected static java.util.logging.Logger |
logger
logger for all instances |
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)
|
org.freehep.util.io.Tag |
read(int tagID,
org.freehep.util.io.TaggedInputStream input,
int len)
|
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. |
void |
write(int tagID,
org.freehep.util.io.TaggedOutputStream 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 |
logger
protected static final java.util.logging.Logger logger
- logger for all instances
EMFTag
protected EMFTag(int id,
int version)
- Constructs a EMFTag.
- Parameters:
id
- id of the elementversion
- emf version in which this element was first supported
read
public org.freehep.util.io.Tag read(int tagID,
org.freehep.util.io.TaggedInputStream input,
int len)
throws java.io.IOException
- Specified by:
read
in class org.freehep.util.io.Tag
- Throws:
java.io.IOException
read
public abstract EMFTag read(int tagID,
EMFInputStream emf,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int tagID,
org.freehep.util.io.TaggedOutputStream output)
throws java.io.IOException
- Specified by:
write
in class org.freehep.util.io.Tag
- Throws:
java.io.IOException
write
public void write(int tagID,
EMFOutputStream emf)
throws java.io.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 tagemf
- Binary CGM output stream
- Throws:
java.io.IOException
- thrown by EMFOutputStream
toString
public java.lang.String toString()
- Specified by:
toString
in class org.freehep.util.io.Tag
- Returns:
- a description of the tagName and tagID
render
public void render(EMFRenderer renderer)
- displays the tag using the renderer
- Specified by:
render
in interface GDIObject
- Parameters:
renderer
- EMFRenderer storing the drawing session data
Copyright © 2000-2007 FreeHEP. All Rights Reserved.