FreeHEP API
Version current

org.freehep.graphicsio.cgm
Class Polygon

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.graphicsio.cgm.CGMTag
          extended byorg.freehep.graphicsio.cgm.Polyline
              extended byorg.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
Source Code:
Polygon.java

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, 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
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.