org.freehep.graphicsio.emf.gdi
Class AbstractPolyPolygon

java.lang.Object
  extended by org.freehep.util.io.Tag
      extended by org.freehep.graphicsio.emf.EMFTag
          extended by 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

Field Summary
 
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.
 
Method Summary
protected  java.awt.Rectangle getBounds()
           
protected  int[] getNumberOfPoints()
           
protected  java.awt.Point[][] getPoints()
           
 void render(EMFRenderer renderer)
          displays the tag using the renderer.
protected  void render(EMFRenderer renderer, boolean closePath)
          displays the tag using the renderer
 java.lang.String toString()
           
 
Methods inherited from class org.freehep.graphicsio.emf.EMFTag
read, read, write, 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

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 element
version - emf version in which this element was first supported
bounds - bounds of figure
numberOfPoints - number of points
points - points
Method Detail

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 data
closePath - if true the path is closed and filled


Copyright © 2000-2007 FreeHEP. All Rights Reserved.