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 |
Methods inherited from class org.freehep.util.io.Tag |
getName, getTag, getTagType, getVersion |
AbstractArc
protected AbstractArc(int id,
int version,
Rectangle bounds,
Point start,
Point end)
write
public void write(int tagID,
EMFOutputStream emf)
throws 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:
IOException
- thrown by EMFOutputStream
toString
public String toString()
- Overrides:
toString
in class EMFTag
- Returns:
- a description of the tagName and tagID
getShape
protected 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 © 2012. All Rights Reserved.