Class WMFUtilities
- java.lang.Object
-
- org.apache.batik.transcoder.wmf.tosvg.WMFUtilities
-
public class WMFUtilities extends java.lang.Object
This class holds various utilies for importing WMF files that can be used either forAbstractWMFReader
s andAbstractWMFPainter
s- Version:
- $Id: WMFUtilities.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Constructor Summary
Constructors Constructor Description WMFUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
decodeString(WMFFont wmfFont, byte[] bstr)
Decode a byte array in a string, using the charset of the given font.static int
getHorizontalAlignment(int align)
Get the Horizontal Alignement for the Alignment property.static int
getVerticalAlignment(int align)
Get the Vertical Alignement for the Alignment property.
-
-
-
Method Detail
-
decodeString
public static java.lang.String decodeString(WMFFont wmfFont, byte[] bstr)
Decode a byte array in a string, using the charset of the given font.- Parameters:
wmfFont
- the font to use the charset of.bstr
- the encoded bytes of the string.
-
getHorizontalAlignment
public static int getHorizontalAlignment(int align)
Get the Horizontal Alignement for the Alignment property.
-
getVerticalAlignment
public static int getVerticalAlignment(int align)
Get the Vertical Alignement for the Alignment property.
-
-