FreeHEP API
Version v1.1

org.freehep.graphicsio.cgm
Class Polygon

java.lang.Object
  |
  +--org.freehep.util.io.Tag
        |
        +--org.freehep.graphicsio.cgm.CGMTag
              |
              +--org.freehep.graphicsio.cgm.Polyline
                    |
                    +--org.freehep.graphicsio.cgm.Polygon

public class Polygon
extends Polyline

Polygon TAG.

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

Field Summary
 
Fields inherited from class org.freehep.graphicsio.cgm.Polyline
p
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
Polygon()
           
Polygon(Point2D[] p)
           
 
Method Summary
 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.Polyline
write, writePointList
 
Methods inherited from class org.freehep.graphicsio.cgm.CGMTag
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
 

Constructor Detail

Polygon

public Polygon()

Polygon

public Polygon(Point2D[] p)
Method Detail

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 Polyline
Parameters:
tagID - id of the tag
cgm - Clear Text CGM Writer
IOException

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.