org.freehep.graphicsio.emf.gdi
Class AbstractPolyPolygon
java.lang.Object
org.freehep.util.io.Tag
org.freehep.graphicsio.emf.EMFTag
org.freehep.graphicsio.emf.gdi.AbstractPolyPolygon
- All Implemented Interfaces:
- GDIObject
- Direct Known Subclasses:
- AbstractPolyPolyline, PolyPolygon, PolyPolygon16
public abstract class AbstractPolyPolygon
- extends EMFTag
abstract parent for PolyPolygon drawing
- 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 |
AbstractPolyPolygon(int id,
int version,
java.awt.Rectangle bounds,
int[] numberOfPoints,
java.awt.Point[][] points)
Constructs a EMFTag. |
| 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 |
AbstractPolyPolygon
protected AbstractPolyPolygon(int id,
int version,
java.awt.Rectangle bounds,
int[] numberOfPoints,
java.awt.Point[][] points)
- Constructs a EMFTag.
- Parameters:
id - id of the elementversion - emf version in which this element was first supportedbounds - bounds of figurenumberOfPoints - number of pointspoints - points
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()
render
public void render(EMFRenderer renderer)
- displays the tag using the renderer. The default behavior
is to close and fill the polgygons for rendering.
- Specified by:
render in interface GDIObject- Overrides:
render in class EMFTag
- Parameters:
renderer - EMFRenderer storing the drawing session data
render
protected void render(EMFRenderer renderer,
boolean closePath)
- displays the tag using the renderer
- Parameters:
renderer - EMFRenderer storing the drawing session dataclosePath - if true the path is closed and filled
Copyright © 2000-2007 FreeHEP. All Rights Reserved.