|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.coder.Context
public class Context
Contexts are used to pass information between objects when they are being encoded or decoded.
| Field Summary | |
|---|---|
static int |
ADVANCE_SIZE
The number of bit used to encode a glyph advance. |
static int |
ARRAY_EXTENDED
Arrays of fill or line styles can contain more than 255 entries. |
static int |
COMPRESSED
Indicates the flash file is compressed. |
static int |
FILL_SIZE
The number of bit used to encode a fill style selection. |
static int |
GLYPH_SIZE
The number of bit used to encode a glyph index. |
static int |
LAST
Indicates that this is the last EventHandler to be encoded/decoded. |
static int |
LINE_SIZE
The number of bit used to encode a line style selection. |
static int |
MENU_BUTTON
Indicates a definition is for menu button. |
static int |
POSTSCRIPT
The glyphs were derived from a Postscript font. |
static int |
SCALING_STROKE
The line styles define a scaling stroke. |
static int |
SHAPE_SIZE
The number of bits used to encode a given shape. |
static int |
TRANSPARENT
Whether the alpha channel should be encoded / decoded. |
static int |
TYPE
Type identifying the current MovieTag being decoded. |
static int |
VERSION
Flash Version. |
static int |
WIDE_CODES
Character codes are 16-bits. |
| Constructor Summary | |
|---|---|
Context()
Create a Context object. |
|
| Method Summary | |
|---|---|
boolean |
contains(Integer key)
Is a variable set. |
Integer |
get(Integer key)
Get the value of a variable. |
String |
getEncoding()
Get character encoding scheme used when encoding or decoding strings. |
DecoderRegistry |
getRegistry()
Get the registry containing the decoders for different types of objects. |
Context |
put(Integer key,
Integer value)
Set a variable. |
void |
remove(Integer key)
Delete the context variable. |
void |
setEncoding(String charSet)
Sets the character encoding scheme used when encoding or decoding strings. |
void |
setRegistry(DecoderRegistry decoderRegistry)
Set the registry containing the decoders for different types of objects. |
int |
strlen(String string)
Calculates the length of a string when encoded using the specified character set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION
public static final int TYPE
public static final int TRANSPARENT
public static final int WIDE_CODES
public static final int ARRAY_EXTENDED
public static final int POSTSCRIPT
public static final int SCALING_STROKE
public static final int FILL_SIZE
public static final int LINE_SIZE
public static final int ADVANCE_SIZE
public static final int GLYPH_SIZE
public static final int SHAPE_SIZE
public static final int LAST
public static final int COMPRESSED
public static final int MENU_BUTTON
| Constructor Detail |
|---|
public Context()
| Method Detail |
|---|
public String getEncoding()
public void setEncoding(String charSet)
charSet - the name of the character set used to encode strings.public int strlen(String string)
string - the string to be encoded.
public DecoderRegistry getRegistry()
public void setRegistry(DecoderRegistry decoderRegistry)
decoderRegistry - the registry containing decoder objects.public boolean contains(Integer key)
key - the name of the variable.
public void remove(Integer key)
key - the identifier for the variable.public Integer get(Integer key)
key - the name of the variable.
public Context put(Integer key,
Integer value)
key - the name of the variable.value - the variable value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||