FreeHEP API
Version v1.1

org.freehep.graphicsio.cgm
Class CGMTag

java.lang.Object
  |
  +--org.freehep.util.io.Tag
        |
        +--org.freehep.graphicsio.cgm.CGMTag
Direct Known Subclasses:
AlternateCharacterSetIndex, AppendText, ApplicationData, AspectSourceFlags, AuxiliaryColor, BackgroundColor, BeginFigure, BeginMetafile, BeginPicture, BeginPictureBody, BeginSegment, CellArray, CharacterCodingAnnouncer, CharacterExpansionFactor, CharacterHeight, CharacterOrientation, CharacterSetIndex, CharacterSetList, CharacterSpacing, Circle, CircularArc3Point, CircularArcCentre, ClipIndicator, ClipRectangle, ColorIndexPrecision, ColorPrecision, ColorSelectionMode, ColorTable, ColorValueExtent, ConnectingEdge, EdgeBundleIndex, EdgeCap, EdgeColor, EdgeJoin, EdgeType, EdgeVisibility, EdgeWidth, EdgeWidthSpecificationMode, Ellipse, EndFigure, EndMetafile, EndPicture, EndSegment, Escape, FillBundleIndex, FillColor, FillReferencePoint, FontList, GeneralizedDrawingPrimitive, HatchIndex, IndexPrecision, IntegerPrecision, InteriorStyle, InteriorStyleSpecificationMode, LineBundleIndex, LineCap, LineColor, LineJoin, LineType, LineWidth, LineWidthSpecificationMode, MarkerBundleIndex, MarkerColor, MarkerSize, MarkerSizeSpecificationMode, MarkerType, MaximumColorIndex, MaximumVDCExtent, Message, MetafileDefaultsReplacement, MetafileDescription, MetafileElementList, MetafileVersion, MitreLimit, NamePrecision, NoOp, PatternIndex, PatternSize, PatternTable, PolygonSet, Polyline, RealPrecision, Rectangle, ScalingMode, SegmentPriorityExtent, TextAlignment, TextBundleIndex, TextColor, TextFontIndex, TextPath, TextPrecision, Transparency, VDCExtent, VDCIntegerPrecision, VDCRealPrecision, VDCType

public abstract class CGMTag
extends Tag

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

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

Field Summary
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
protected CGMTag(int elementClass, int id, int version)
          Constructs a CGMTag.
 
Method Summary
 Tag read(int tagID, TaggedInputStream input, int len)
          This implementation supports only the CGM Output format.
 String toString()
           
 void write(int tagID, CGMOutputStream cgm)
          Writes the extra tag information to the outputstream in binary format.
abstract  void write(int tagID, CGMWriter cgm)
          Writes the full tag to the Writer in Clear Text 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

CGMTag

protected CGMTag(int elementClass,
                 int id,
                 int version)
Constructs a CGMTag.

Parameters:
elementClass - class of the element
id - id of the element
version - cgm 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 CGM Output format.

Specified by:
read in class Tag
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,
                  CGMOutputStream cgm)
           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
cgm - Binary CGM output stream
IOException

write

public abstract void write(int tagID,
                           CGMWriter cgm)
                    throws IOException
Writes the full tag to the Writer in Clear Text format.

Parameters:
tagID - id of the tag
cgm - Clear Text CGM Writer
IOException

toString

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

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.