com.aspose.metafiles
Class MetafileCharsetCollection

java.lang.Object
  extended by com.aspose.metafiles.MetafileCharsetCollection

public final class MetafileCharsetCollection
extends java.lang.Object

Represents charsets collection used when drawing non-unicode text. Maps WINAPI *_CHARSET constants to charset-decoding rules. A rule can be defined by array of char (simpliest transform, str[i] = charMap[byteBuffer[i]] ) or using java.nio.charset.Charset object. If some rule is undefined, rule for DEFAULT_CHARSET will be used instead.


Field Summary
static int ANSI_CHARSET
          ANSI charset (cp1252).
static int ARABIC_CHARSET
          Arabic charset (cp1256).
static int BALTIC_CHARSET
          Baltic charset (cp1257).
static int CHINESEBIG5_CHARSET
          Chinese Big5 charset (cp950).
static int DEFAULT_CHARSET
          Default charset.
static int EASTEUROPE_CHARSET
          Eastern european charset (cp1250).
static int GB2312_CHARSET
          GB2312 charset (cp936).
static int GREEK_CHARSET
          Greek charset (cp1253).
static int HANGEUL_CHARSET
          Hangeul charset (cp949).
static int HANGUL_CHARSET
          Hangeul charset (same as HANGEUL_CHARSET, cp949).
static int HEBREW_CHARSET
          Hebrew charset (cp1255).
static int JOHAB_CHARSET
          Johab charset (cp1361)
static int MAC_CHARSET
           
static MetafilesRenderingHintKey METAFILES_CHARSET_COLLECTION
          RenderingHint Key to use with charset collection
static int OEM_CHARSET
          Default OEM charset.
static int RUSSIAN_CHARSET
          Cyrillic charset (cp1251).
static int SHIFTJIS_CHARSET
          Shift JIS charset (cp932).
static int SYMBOL_CHARSET
          Symbol charset.
static int THAI_CHARSET
          Thai charset (cp874).
static int TURKISH_CHARSET
          Turkish charset (cp1254).
static int VIETNAMESE_CHARSET
          Vietnamese charset (cp1258).
 
Constructor Summary
MetafileCharsetCollection()
          Creates new MetafileCharsetCollection filled with default values.
 
Method Summary
 void SetAllCharsetsTo(char[] charMap)
          Removes all charsets from the collection and set specified charMap as a default one.
 void SetAllCharsetsTo(java.nio.charset.Charset charset)
          Removes all charsets from the collection and set specified charset as a default one.
 void SetCharset(int charsetId, char[] charMap)
          Set a characted mapping array as a charset for decoding text with codepage, defined by charsetId.
 void SetCharset(int charsetId, java.nio.charset.Charset charset)
          Set a charset as a charset for decoding text with codepage, defined by charsetId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANSI_CHARSET

public static final int ANSI_CHARSET
ANSI charset (cp1252).

See Also:
Constant Field Values

DEFAULT_CHARSET

public static final int DEFAULT_CHARSET
Default charset.

See Also:
Constant Field Values

SYMBOL_CHARSET

public static final int SYMBOL_CHARSET
Symbol charset.

See Also:
Constant Field Values

SHIFTJIS_CHARSET

public static final int SHIFTJIS_CHARSET
Shift JIS charset (cp932).

See Also:
Constant Field Values

HANGEUL_CHARSET

public static final int HANGEUL_CHARSET
Hangeul charset (cp949).

See Also:
Constant Field Values

HANGUL_CHARSET

public static final int HANGUL_CHARSET
Hangeul charset (same as HANGEUL_CHARSET, cp949).

See Also:
Constant Field Values

GB2312_CHARSET

public static final int GB2312_CHARSET
GB2312 charset (cp936).

See Also:
Constant Field Values

CHINESEBIG5_CHARSET

public static final int CHINESEBIG5_CHARSET
Chinese Big5 charset (cp950).

See Also:
Constant Field Values

OEM_CHARSET

public static final int OEM_CHARSET
Default OEM charset.

See Also:
Constant Field Values

JOHAB_CHARSET

public static final int JOHAB_CHARSET
Johab charset (cp1361)

See Also:
Constant Field Values

HEBREW_CHARSET

public static final int HEBREW_CHARSET
Hebrew charset (cp1255).

See Also:
Constant Field Values

ARABIC_CHARSET

public static final int ARABIC_CHARSET
Arabic charset (cp1256).

See Also:
Constant Field Values

GREEK_CHARSET

public static final int GREEK_CHARSET
Greek charset (cp1253).

See Also:
Constant Field Values

TURKISH_CHARSET

public static final int TURKISH_CHARSET
Turkish charset (cp1254).

See Also:
Constant Field Values

VIETNAMESE_CHARSET

public static final int VIETNAMESE_CHARSET
Vietnamese charset (cp1258).

See Also:
Constant Field Values

THAI_CHARSET

public static final int THAI_CHARSET
Thai charset (cp874).

See Also:
Constant Field Values

EASTEUROPE_CHARSET

public static final int EASTEUROPE_CHARSET
Eastern european charset (cp1250).

See Also:
Constant Field Values

RUSSIAN_CHARSET

public static final int RUSSIAN_CHARSET
Cyrillic charset (cp1251).

See Also:
Constant Field Values

MAC_CHARSET

public static final int MAC_CHARSET
See Also:
Constant Field Values

BALTIC_CHARSET

public static final int BALTIC_CHARSET
Baltic charset (cp1257).

See Also:
Constant Field Values

METAFILES_CHARSET_COLLECTION

public static MetafilesRenderingHintKey METAFILES_CHARSET_COLLECTION
RenderingHint Key to use with charset collection

Constructor Detail

MetafileCharsetCollection

public MetafileCharsetCollection()
Creates new MetafileCharsetCollection filled with default values.

Method Detail

SetCharset

public void SetCharset(int charsetId,
                       java.nio.charset.Charset charset)
                throws MetafilesException
Set a charset as a charset for decoding text with codepage, defined by charsetId.

Parameters:
charsetId -
charset -
Throws:
MetafilesException

SetCharset

public void SetCharset(int charsetId,
                       char[] charMap)
                throws MetafilesException
Set a characted mapping array as a charset for decoding text with codepage, defined by charsetId.

Parameters:
charsetId -
charMap -
Throws:
MetafilesException

SetAllCharsetsTo

public void SetAllCharsetsTo(java.nio.charset.Charset charset)
                      throws MetafilesException
Removes all charsets from the collection and set specified charset as a default one.

Parameters:
charset -
Throws:
MetafilesException

SetAllCharsetsTo

public void SetAllCharsetsTo(char[] charMap)
                      throws MetafilesException
Removes all charsets from the collection and set specified charMap as a default one.

Parameters:
charMap -
Throws:
MetafilesException