sferyx.administration.renderers.extensions.wmfrenderer
Class WMFPainter

java.lang.Object
  extended by sferyx.administration.renderers.extensions.wmfrenderer.AbstractWMFPainter
      extended by sferyx.administration.renderers.extensions.wmfrenderer.WMFPainter

public class WMFPainter
extends AbstractWMFPainter

Core class for rendering the WMF image. It is able to render a WMF file in a Graphics object.


Field Summary
 
Fields inherited from class sferyx.administration.renderers.extensions.wmfrenderer.AbstractWMFPainter
bReadingWMF, BRUSH, currentHorizAlign, currentStore, currentVertAlign, FONT, NULL_BRUSH, NULL_PEN, OBJ_BITMAP, OBJ_REGION, PALETTE, PEN, WMF_FILE_EXTENSION, wmfFont
 
Constructor Summary
WMFPainter(WMFRecordStore currentStore, float scale)
          Basic constructor.
WMFPainter(WMFRecordStore currentStore, int xOffset, int yOffset, float scale)
          Basic constructor.
 
Method Summary
 WMFRecordStore getRecordStore()
          Returns the WMFRecordStore this WMFPainter renders
 void paint(java.awt.Graphics g)
          Renders the WMF image(s).
 
Methods inherited from class sferyx.administration.renderers.extensions.wmfrenderer.AbstractWMFPainter
addObject, addObjectAt, getAttributedString, getCharacterIterator, getCharacterIterator, getImage, getImage, getImageDimension, setRecordStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMFPainter

public WMFPainter(WMFRecordStore currentStore,
                  float scale)
Basic constructor.

Parameters:
currentStore - where the WMF records are stored
scale - the scale of the image

WMFPainter

public WMFPainter(WMFRecordStore currentStore,
                  int xOffset,
                  int yOffset,
                  float scale)
Basic constructor.

Parameters:
scale - the scale of the image
currentStore - where the WMF records are stored
xOffset - x value for offset
yOffset - y value for offset
Method Detail

paint

public void paint(java.awt.Graphics g)
Renders the WMF image(s).


getRecordStore

public WMFRecordStore getRecordStore()
Returns the WMFRecordStore this WMFPainter renders

Overrides:
getRecordStore in class AbstractWMFPainter