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 booleanstatic final intprotected BufferedInputStreamprotected intprotected WMFRecordStoreprotected intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringprotected WMFFont -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddObject(WMFRecordStore store, int type, Object obj) protected intaddObjectAt(WMFRecordStore store, int type, Object obj, int idx) protected AttributedStringgetAttributedString(Graphics2D g2d, String sr, WMFFont wmffont) protected AttributedCharacterIteratorgetCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont) Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String.protected AttributedCharacterIteratorgetCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont, int align) Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String.protected BufferedImagegetImage(byte[] bit) Return the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.protected BufferedImagegetImage(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 DimensiongetImageDimension(byte[] bit) Returns the WMFRecordStore this WMFPainter rendersvoidsetRecordStore(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
-
AbstractWMFPainter
public AbstractWMFPainter()
-
-
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
-