|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.transcoder.wmf.tosvg.AbstractWMFPainter
public class AbstractWMFPainter
This class provides generic methods that must be used by a particular WMFPainter.
Field Summary | |
---|---|
protected boolean |
bReadingWMF
|
static int |
BRUSH
|
protected java.io.BufferedInputStream |
bufStream
|
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
|
static java.lang.String |
WMF_FILE_EXTENSION
|
protected WMFFont |
wmfFont
|
Constructor Summary | |
---|---|
AbstractWMFPainter()
|
Method Summary | |
---|---|
protected int |
addObject(WMFRecordStore store,
int type,
java.lang.Object obj)
|
protected int |
addObjectAt(WMFRecordStore store,
int type,
java.lang.Object obj,
int idx)
|
protected java.text.AttributedString |
getAttributedString(java.awt.Graphics2D g2d,
java.lang.String sr,
WMFFont wmffont)
|
protected java.text.AttributedCharacterIterator |
getCharacterIterator(java.awt.Graphics2D g2d,
java.lang.String sr,
WMFFont wmffont)
Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String. |
protected java.text.AttributedCharacterIterator |
getCharacterIterator(java.awt.Graphics2D g2d,
java.lang.String sr,
WMFFont wmffont,
int align)
Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String. |
protected java.awt.image.BufferedImage |
getImage(byte[] bit)
Return the image associated with a bitmap in a Metafile. |
protected java.awt.image.BufferedImage |
getImage(byte[] bit,
int width,
int height)
Return the image associated with a bitmap in a Metafile. |
protected java.awt.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WMF_FILE_EXTENSION
protected WMFFont wmfFont
protected int currentHorizAlign
protected int currentVertAlign
public static final int PEN
public static final int BRUSH
public static final int FONT
public static final int NULL_PEN
public static final int NULL_BRUSH
public static final int PALETTE
public static final int OBJ_BITMAP
public static final int OBJ_REGION
protected WMFRecordStore currentStore
protected transient boolean bReadingWMF
protected transient java.io.BufferedInputStream bufStream
Constructor Detail |
---|
public AbstractWMFPainter()
Method Detail |
---|
protected java.awt.image.BufferedImage getImage(byte[] bit, int width, int height)
bit
- the bitmap byte arraywidth
- the bitmap assumed widthheight
- the bitmap assumed height
protected java.awt.Dimension getImageDimension(byte[] bit)
protected java.awt.image.BufferedImage getImage(byte[] bit)
bit
- the bitmap byte array
protected java.text.AttributedCharacterIterator getCharacterIterator(java.awt.Graphics2D g2d, java.lang.String sr, WMFFont wmffont)
protected java.text.AttributedCharacterIterator getCharacterIterator(java.awt.Graphics2D g2d, java.lang.String sr, WMFFont wmffont, int align)
protected java.text.AttributedString getAttributedString(java.awt.Graphics2D g2d, java.lang.String sr, WMFFont wmffont)
public void setRecordStore(WMFRecordStore currentStore)
public WMFRecordStore getRecordStore()
protected int addObject(WMFRecordStore store, int type, java.lang.Object obj)
protected int addObjectAt(WMFRecordStore store, int type, java.lang.Object obj, int idx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |