FreeHEP API
Version current

org.freehep.graphicsio.cgm
Class EdgeCap

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.graphicsio.cgm.CGMTag
          extended byorg.freehep.graphicsio.cgm.EdgeCap

public class EdgeCap
extends CGMTag

EdgeCap TAG.

Version:
$Id: EdgeCap.java,v 1.2 2002/01/22 08:15:30 duns Exp $
Author:
Mark Donszelmann, Charles Loomis
Source Code:
EdgeCap.java

Field Summary
static int BUTT
           
static int MATCH
           
static int ROUND
           
static int SQUARE
           
static int TRIANGLE
           
static int UNSPECIFIED
           
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
EdgeCap()
           
EdgeCap(int cap)
           
EdgeCap(int cap, int dash)
           
 
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.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

UNSPECIFIED

public static final int UNSPECIFIED
See Also:
Constant Field Values

BUTT

public static final int BUTT
See Also:
Constant Field Values

ROUND

public static final int ROUND
See Also:
Constant Field Values

MATCH

public static final int MATCH
See Also:
Constant Field Values

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

TRIANGLE

public static final int TRIANGLE
See Also:
Constant Field Values
Constructor Detail

EdgeCap

public EdgeCap()

EdgeCap

public EdgeCap(int cap)

EdgeCap

public EdgeCap(int cap,
               int dash)
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 CGMTag
Parameters:
tagID - id of the tag
cgm - Binary CGM output stream
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.

Specified by:
write in class CGMTag
Parameters:
tagID - id of the tag
cgm - Clear Text CGM Writer
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.