| java.lang.Object org.openlaszlo.connection.SwfByte
SwfByte | public class SwfByte (Code) | | Helper class to send dribbled event information down to Flash client.
|
Method Summary | |
public SwfByte | actionSetElement(Element el) Uses DataCompiler to generate action bytecode based on XML. | public SwfByte | actionSetVariable(String lVal, String rVal) Write byte-code to set a variable with a value. | public byte[] | getBuf() Returns exact number of bytes written to buffer. | public static byte[] | getExactBytes(FlashBuffer buf) Returns the actual amount written to the FlashBuffer, instead of
returning the buffer itself. | public SwfByte | setHeader(int version) Creates SWF header with default values. | public SwfByte | setHeader(int version, int xMin, int xMax, int yMin, int yMax, double frameRate, int frameCount) Creates SWF header. | public SwfByte | setHeader(int version, Rectangle2D rect, double frameRate, int frameCount) Creates SWF header. | public SwfByte | setLength() Sets the exact length of bytes written to header at moment this method
is called. | public SwfByte | setLength(int length) Sets the specified length of bytes to header. | public SwfByte | setShowFrame() Write byte-code to show frame. |
DEFAULT_HEADER_FRAME_COUNT | final public static int DEFAULT_HEADER_FRAME_COUNT(Code) | | Default header frame count
|
DEFAULT_HEADER_FRAME_RATE | final public static double DEFAULT_HEADER_FRAME_RATE(Code) | | Default header frame rate
|
DEFAULT_HEADER_LENGTH | final public static int DEFAULT_HEADER_LENGTH(Code) | | Default header length to send
|
DEFAULT_HEADER_X_MAX | final public static int DEFAULT_HEADER_X_MAX(Code) | | Default header x-max
|
DEFAULT_HEADER_X_MIN | final public static int DEFAULT_HEADER_X_MIN(Code) | | Default header x-min
|
DEFAULT_HEADER_Y_MAX | final public static int DEFAULT_HEADER_Y_MAX(Code) | | Default header y-max
|
DEFAULT_HEADER_Y_MIN | final public static int DEFAULT_HEADER_Y_MIN(Code) | | Default header y-min
|
actionSetElement | public SwfByte actionSetElement(Element el)(Code) | | Uses DataCompiler to generate action bytecode based on XML.
|
actionSetVariable | public SwfByte actionSetVariable(String lVal, String rVal)(Code) | | Write byte-code to set a variable with a value.
Parameters: lVal - variable to set Parameters: rVal - value to set variable with |
getBuf | public byte[] getBuf()(Code) | | Returns exact number of bytes written to buffer.
buffer |
getExactBytes | public static byte[] getExactBytes(FlashBuffer buf)(Code) | | Returns the actual amount written to the FlashBuffer, instead of
returning the buffer itself. The buffer size is greater than or equal to
the last position.
Parameters: buf - flash buffer the actual bytes being stored in the buffer |
setHeader | public SwfByte setHeader(int version)(Code) | | Creates SWF header with default values. Length must be explicitly set by
calling on the setLength() methods. If header has been set before this,
it will be overridden.
|
setHeader | public SwfByte setHeader(int version, int xMin, int xMax, int yMin, int yMax, double frameRate, int frameCount)(Code) | | Creates SWF header. Length must be explicitly set by calling on the
setLength() methods. If header has been set before this,
it will be overridden.
Parameters: version - version number of SWF Parameters: xMin - x-min coordinates for frame size (in TWIPS) Parameters: xMax - x-max coordinates for frame size (in TWIPS) Parameters: yMin - x-min coordinates for frame size (in TWIPS) Parameters: yMax - y-max coordinates for frame size (in TWIPS) Parameters: frameRate - (not used) Parameters: frameCount - total number of frames in movie |
setHeader | public SwfByte setHeader(int version, Rectangle2D rect, double frameRate, int frameCount)(Code) | | Creates SWF header. Length must be explicitly set by calling on the
setLength() methods. If header has been set before this,
it will be overridden.
Parameters: version - version number of SWF Parameters: rect - rectangular coordinates for frame size (in TWIPS) Parameters: frameRate - (not used) Parameters: frameCount - total number of frames in movie |
setLength | public SwfByte setLength()(Code) | | Sets the exact length of bytes written to header at moment this method
is called.
|
setLength | public SwfByte setLength(int length)(Code) | | Sets the specified length of bytes to header.
Parameters: length - length to set |
setShowFrame | public SwfByte setShowFrame()(Code) | | Write byte-code to show frame.
|
|
|