Package com.reportmill.flash
Class RMFlash
- java.lang.Object
-
- com.reportmill.flash.RMFlash
-
public class RMFlash extends java.lang.Object
This class write an RM document to a flash bufer.
-
-
Constructor Summary
Constructors Constructor Description RMFlash(RMDocument aDoc)
Creates a flash writer for given doc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
RMFlash
public RMFlash(RMDocument aDoc)
Creates a flash writer for given doc.
-
-
Method Detail
-
getBytesFlash
public byte[] getBytesFlash()
Returns the flash bytes for this flash/document writer.
-
indexOfImageData
public int indexOfImageData(RMImageData anImageData)
Get index of given image data in flash buffer (add it if missing).
-
indexOfSoundData
public int indexOfSoundData(RMSoundData aSoundData)
Get index of given sound data in flash buffer (add it if missing).
-
defineSounds
public void defineSounds()
Write registered sound data to flash buffer.
-
showFrame
public void showFrame()
Write tagShowFrame to display contents of display list on screen with tagLen 0.
-
shapeIdMax
public int shapeIdMax()
Returns the next available shape character id.
-
definePath
public void definePath(RMPath path, RMRect bounds, boolean drawsFill, boolean drawsStroke)
Writes the given path to the flash buffer.
-
beginRecordWithTagId
public void beginRecordWithTagId(int tagId)
-
endRecord
public void endRecord()
-
writeRect
public void writeRect(RMRect aRect)
Writes given rect to flash buffer.
-
writeColor
public void writeColor(RMColor aColor)
Writes given color to flash buffer.
-
writeColorWithAlpha
public void writeColorWithAlpha(RMColor aColor)
Writes given color (with alpha) to flash buffer.
-
writeString
public void writeString(java.lang.String aString)
Writes given string to flash buffer.
-
writeShapeRecordType1
public void writeShapeRecordType1(int fill, int stroke, RMPoint aPoint)
-
writeShapeRecordType2
public void writeShapeRecordType2(RMPoint aPoint)
-
writePlaceObject2
public void writePlaceObject2(RMFlashShape aShape)
-
writePlaceObject2
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)
-
-