org.apache.batik.transcoder.wmf.tosvg
public class AbstractWMFPainter extends Object
Field Summary | |
---|---|
protected boolean | bReadingWMF |
protected BufferedInputStream | bufStream |
static int | BRUSH |
protected int | currentHorizAlign |
protected WMFRecordStore | currentStore |
protected int | currentVertAlign |
static int | FONT |
static int | NULL_BRUSH |
static int | NULL_PEN |
static int | OBJ_BITMAP |
static int | OBJ_REGION |
static int | PALETTE |
static int | PEN |
protected WMFFont | wmfFont |
static String | WMF_FILE_EXTENSION |
Method Summary | |
---|---|
protected int | addObject(WMFRecordStore store, int type, Object obj) |
protected int | addObjectAt(WMFRecordStore store, int type, Object obj, int idx) |
protected AttributedString | getAttributedString(Graphics2D g2d, String sr, WMFFont wmffont) |
protected AttributedCharacterIterator | getCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont) Create an AttributedCharacterIterator with the current definition of the WMF Font, and
the input String. |
protected AttributedCharacterIterator | getCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont, int align) Create an AttributedCharacterIterator with the current definition of the WMF Font, and
the input String. |
protected BufferedImage | getImage(byte[] bit, int width, int height) Return the image associated with a bitmap in a Metafile.
|
protected BufferedImage | getImage(byte[] bit) Return the image associated with a bitmap in a Metafile.
|
protected Dimension | getImageDimension(byte[] bit) |
WMFRecordStore | getRecordStore()
Returns the WMFRecordStore this WMFPainter renders |
void | setRecordStore(WMFRecordStore currentStore)
Sets the WMFRecordStore this WMFPainter should use to render |
Parameters: bit the bitmap byte array width the bitmap assumed width height the bitmap assumed height
Returns: the Image associated with the bitmap (null if the dimensions detected in the header are not consistent with the assumed dimensions)
Parameters: bit the bitmap byte array
Returns: the Image associated with the bitmap (null if the dimensions detected in the header are not consistent with the assumed dimensions)