public class RMFlash
extends java.lang.Object
Constructor and Description |
---|
RMFlash(RMDocument aDoc)
Creates a flash writer for given doc.
|
Modifier and Type | Method and Description |
---|---|
void |
beginRecordWithTagId(int tagId) |
void |
definePath(RMPath path,
RMRect bounds,
boolean drawsFill,
boolean drawsStroke)
Writes the given path to the flash buffer.
|
void |
defineSounds()
Write registered sound data to flash buffer.
|
void |
endRecord() |
byte[] |
getBytesFlash()
Returns the flash bytes for this flash/document writer.
|
int |
indexOfImageData(RMImageData anImageData)
Get index of given image data in flash buffer (add it if missing).
|
int |
indexOfSoundData(RMSoundData aSoundData)
Get index of given sound data in flash buffer (add it if missing).
|
int |
shapeIdMax()
Returns the next available shape character id.
|
void |
showFrame()
Write tagShowFrame to display contents of display list on screen with tagLen 0.
|
void |
writeColor(RMColor aColor)
Writes given color to flash buffer.
|
void |
writeColorWithAlpha(RMColor aColor)
Writes given color (with alpha) to flash buffer.
|
void |
writePlaceObject2(int shapeId,
int depth,
RMTransform t,
float ratio,
boolean addToDisplayList,
java.lang.String aName,
RMColor fromColor,
RMColor toColor,
float opacity,
byte[] eventActions) |
void |
writePlaceObject2(RMFlashShape aShape) |
void |
writeRect(RMRect aRect)
Writes given rect to flash buffer.
|
void |
writeShapeRecordType1(int fill,
int stroke,
RMPoint aPoint) |
void |
writeShapeRecordType2(RMPoint aPoint) |
void |
writeShapeRecordType2(RMPoint controlPoint,
RMPoint anchorPoint) |
void |
writeString(java.lang.String aString)
Writes given string to flash buffer.
|
public RMFlash(RMDocument aDoc)
public byte[] getBytesFlash()
public int indexOfImageData(RMImageData anImageData)
public int indexOfSoundData(RMSoundData aSoundData)
public void defineSounds()
public void showFrame()
public int shapeIdMax()
public void definePath(RMPath path, RMRect bounds, boolean drawsFill, boolean drawsStroke)
public void beginRecordWithTagId(int tagId)
public void endRecord()
public void writeRect(RMRect aRect)
public void writeColor(RMColor aColor)
public void writeColorWithAlpha(RMColor aColor)
public void writeString(java.lang.String aString)
public void writeShapeRecordType1(int fill, int stroke, RMPoint aPoint)
public void writeShapeRecordType2(RMPoint aPoint)
public void writePlaceObject2(RMFlashShape aShape)
public void writePlaceObject2(int shapeId, int depth, RMTransform t, float ratio, boolean addToDisplayList, java.lang.String aName, RMColor fromColor, RMColor toColor, float opacity, byte[] eventActions)