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 aGraphics
object.
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description WMFPainter(WMFRecordStore currentStore, float scale)
Basic constructor.WMFPainter(WMFRecordStore currentStore, int xOffset, int yOffset, float scale)
Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WMFRecordStore
getRecordStore()
Returns the WMFRecordStore this WMFPainter rendersvoid
paint(java.awt.Graphics g)
Renders the WMF image(s).-
Methods inherited from class org.apache.batik.transcoder.wmf.tosvg.AbstractWMFPainter
addObject, addObjectAt, getAttributedString, getCharacterIterator, getCharacterIterator, getImage, getImage, getImageDimension, setRecordStore
-
-
-
-
Constructor Detail
-
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
-
-
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 classAbstractWMFPainter
-
-