org.freehep.graphicsio.emf.gdi
Class AbstractArc
java.lang.Object
org.freehep.util.io.Tag
org.freehep.graphicsio.emf.EMFTag
org.freehep.graphicsio.emf.gdi.AbstractArc
- All Implemented Interfaces:
- GDIObject
- Direct Known Subclasses:
- Arc, ArcTo, Chord, Pie
public abstract class AbstractArc
- 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 |
AbstractArc(int id,
int version,
java.awt.Rectangle bounds,
java.awt.Point start,
java.awt.Point end)
|
Method Summary |
protected java.awt.Shape |
getShape(EMFRenderer renderer,
int arcType)
creates a shape based on bounds, start and end |
java.lang.String |
toString()
|
void |
write(int tagID,
EMFOutputStream emf)
Writes the extra tag information to the outputstream in binary format. |
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 |
AbstractArc
protected AbstractArc(int id,
int version,
java.awt.Rectangle bounds,
java.awt.Point start,
java.awt.Point end)
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
getShape
protected java.awt.Shape getShape(EMFRenderer renderer,
int arcType)
- creates a shape based on bounds, start and end
- Parameters:
renderer
- EMFRenderer storing the drawing session dataarcType
- type of arc, e.g. Arc2D.OPEN
- Returns:
- shape to render
Copyright © 2000-2007 FreeHEP. All Rights Reserved.