Class AbstractWMFPainter
java.lang.Object
io.sf.carte.echosvg.transcoder.wmf.tosvg.AbstractWMFPainter
- Direct Known Subclasses:
WMFPainter
This class provides generic methods that must be used by a particular
WMFPainter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
static final int
protected BufferedInputStream
protected int
protected WMFRecordStore
protected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
protected WMFFont
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Return the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.protected BufferedImage
getImage
(byte[] bit, int width, int height) Return the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.protected Dimension
getImageDimension
(byte[] bit) Returns the WMFRecordStore this WMFPainter rendersvoid
setRecordStore
(WMFRecordStore currentStore) Sets the WMFRecordStore this WMFPainter should use to render
-
Field Details
-
WMF_FILE_EXTENSION
- See Also:
-
wmfFont
-
currentHorizAlign
protected int currentHorizAlign -
currentVertAlign
protected int currentVertAlign -
PEN
public static final int PEN- See Also:
-
BRUSH
public static final int BRUSH- See Also:
-
FONT
public static final int FONT- See Also:
-
NULL_PEN
public static final int NULL_PEN- See Also:
-
NULL_BRUSH
public static final int NULL_BRUSH- See Also:
-
PALETTE
public static final int PALETTE- See Also:
-
OBJ_BITMAP
public static final int OBJ_BITMAP- See Also:
-
OBJ_REGION
public static final int OBJ_REGION- See Also:
-
currentStore
-
bReadingWMF
protected transient boolean bReadingWMF -
bufStream
-
-
Constructor Details
-
Method Details
-
getImage
Return the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.- Parameters:
bit
- the bitmap byte arraywidth
- the bitmap assumed widthheight
- 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)
-
getImageDimension
-
getImage
Return the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.- 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)
-
getCharacterIterator
protected AttributedCharacterIterator getCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont) Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String. -
getCharacterIterator
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. -
getAttributedString
-
setRecordStore
Sets the WMFRecordStore this WMFPainter should use to render -
getRecordStore
Returns the WMFRecordStore this WMFPainter renders -
addObject
-
addObjectAt
-