org.freehep.graphicsio.emf.gdi
Class AbstractPolygon
java.lang.Object
org.freehep.util.io.Tag
org.freehep.graphicsio.emf.EMFTag
org.freehep.graphicsio.emf.gdi.AbstractPolygon
- All Implemented Interfaces:
- GDIObject
- Direct Known Subclasses:
- EMFPolygon, PolyBezier, PolyBezierTo, Polyline, PolylineTo
public abstract class AbstractPolygon
- extends EMFTag
- Version:
- $Id$
- Author:
- Steffen Greiffenberg
Fields inherited from class org.freehep.graphicsio.emf.EMFTag |
logger |
Fields inherited from class org.freehep.util.io.Tag |
DEFAULT_TAG |
Constructor Summary |
protected |
AbstractPolygon(int id,
int version)
|
protected |
AbstractPolygon(int id,
int version,
java.awt.Rectangle bounds,
int numberOfPoints,
java.awt.Point[] points)
|
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 |
AbstractPolygon
protected AbstractPolygon(int id,
int version)
AbstractPolygon
protected AbstractPolygon(int id,
int version,
java.awt.Rectangle bounds,
int numberOfPoints,
java.awt.Point[] points)
write
public void write(int tagID,
EMFOutputStream emf)
throws java.io.IOException
- Description copied from class:
EMFTag
- 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 EMFTag
- Parameters:
tagID
- id of the tagemf
- Binary CGM output stream
- Throws:
java.io.IOException
- thrown by EMFOutputStream
toString
public java.lang.String toString()
- Overrides:
toString
in class EMFTag
- Returns:
- a description of the tagName and tagID
getBounds
protected java.awt.Rectangle getBounds()
getNumberOfPoints
protected int getNumberOfPoints()
getPoints
protected java.awt.Point[] getPoints()
Copyright © 2000-2007 FreeHEP. All Rights Reserved.