FreeHEP API
Version current

org.freehep.graphicsio.cgm
Class Text

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.graphicsio.cgm.CGMTag
          extended byorg.freehep.graphicsio.cgm.AppendText
              extended byorg.freehep.graphicsio.cgm.Text
Direct Known Subclasses:
RestrictedText

public class Text
extends AppendText

Text TAG.

Version:
$Id: Text.java,v 1.1 2001/11/29 01:45:27 duns Exp $
Author:
Mark Donszelmann, Charles Loomis
Source Code:
Text.java

Field Summary
protected  Point2D p
           
 
Fields inherited from class org.freehep.graphicsio.cgm.AppendText
FINAL, NOT_FINAL, text
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
  Text()
           
protected Text(int elementClass, int elementID, int version)
           
  Text(Point2D p, String text)
           
 
Method Summary
 void write(int tagID, CGMOutputStream cgm)
          Writes the extra tag information to the outputstream in binary format.
 void write(int tagID, CGMWriter cgm)
          Writes the full tag to the Writer in Clear Text format.
 
Methods inherited from class org.freehep.graphicsio.cgm.AppendText
writeTextPiece
 
Methods inherited from class org.freehep.graphicsio.cgm.CGMTag
read, read, toString, 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
 

Field Detail

p

protected Point2D p
Constructor Detail

Text

public Text()

Text

public Text(Point2D p,
            String text)

Text

protected Text(int elementClass,
               int elementID,
               int version)
Method Detail

write

public void write(int tagID,
                  CGMOutputStream cgm)
           throws IOException
Description copied from class: CGMTag
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 AppendText
Throws:
IOException

write

public void write(int tagID,
                  CGMWriter cgm)
           throws IOException
Description copied from class: CGMTag
Writes the full tag to the Writer in Clear Text format.

Overrides:
write in class AppendText
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.