org.apache.batik.transcoder.wmf.tosvg
Class WMFPainter
java.lang.Object
org.apache.batik.transcoder.wmf.tosvg.AbstractWMFPainter
org.apache.batik.transcoder.wmf.tosvg.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.
Fields inherited from class org.apache.batik.transcoder.wmf.tosvg.AbstractWMFPainter |
bReadingWMF, BRUSH, currentHorizAlign, currentStore, currentVertAlign, FONT, NULL_BRUSH, NULL_PEN, OBJ_BITMAP, OBJ_REGION, PALETTE, PEN, WMF_FILE_EXTENSION, wmfFont |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WMFPainter
public WMFPainter(WMFRecordStore currentStore,
float scale)
- Basic constructor.
- Parameters:
currentStore
- where the WMF records are storedscale
- the scale of the image
WMFPainter
public WMFPainter(WMFRecordStore currentStore,
int xOffset,
int yOffset,
float scale)
- Basic constructor.
- Parameters:
scale
- the scale of the imagecurrentStore
- where the WMF records are storedxOffset
- x value for offsetyOffset
- y value for offset
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
Copyright ? 2008 Apache Software Foundation. All Rights Reserved.