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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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
- 
currentHorizAlignprotected int currentHorizAlign
- 
currentVertAlignprotected int currentVertAlign
- 
PENpublic static final int PEN- See Also:
 
- 
BRUSHpublic static final int BRUSH- See Also:
 
- 
FONTpublic static final int FONT- See Also:
 
- 
NULL_PENpublic static final int NULL_PEN- See Also:
 
- 
NULL_BRUSHpublic static final int NULL_BRUSH- See Also:
 
- 
PALETTEpublic static final int PALETTE- See Also:
 
- 
OBJ_BITMAPpublic static final int OBJ_BITMAP- See Also:
 
- 
OBJ_REGIONpublic static final int OBJ_REGION- See Also:
 
- 
currentStore
- 
bReadingWMFprotected transient boolean bReadingWMF
- 
bufStream
 
- 
- 
Constructor Details- 
AbstractWMFPainterpublic AbstractWMFPainter()
 
- 
- 
Method Details- 
getImageReturn the image associated with a bitmap in a Metafile. 24 bits and 8 bits bitmaps are handled.- 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)
 
- 
getImageDimension
- 
getImageReturn 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)
 
- 
getCharacterIteratorprotected AttributedCharacterIterator getCharacterIterator(Graphics2D g2d, String sr, WMFFont wmffont) Create an AttributedCharacterIterator with the current definition of the WMF Font, and the input String.
- 
getCharacterIteratorprotected 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
- 
setRecordStoreSets the WMFRecordStore this WMFPainter should use to render
- 
getRecordStoreReturns the WMFRecordStore this WMFPainter renders
- 
addObject
- 
addObjectAt
 
-