Package com.reportmill.flash
Class RMFlash
java.lang.Object
com.reportmill.flash.RMFlash
This class write an RM document to a flash bufer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginRecordWithTagId(int tagId) voiddefinePath(RMPath path, RMRect bounds, boolean drawsFill, boolean drawsStroke) Writes the given path to the flash buffer.voidWrite registered sound data to flash buffer.voidbyte[]Returns the flash bytes for this flash/document writer.intindexOfImageData(RMImageData anImageData) Get index of given image data in flash buffer (add it if missing).intindexOfSoundData(RMSoundData aSoundData) Get index of given sound data in flash buffer (add it if missing).intReturns the next available shape character id.voidWrite tagShowFrame to display contents of display list on screen with tagLen 0.voidwriteColor(RMColor aColor) Writes given color to flash buffer.voidwriteColorWithAlpha(RMColor aColor) Writes given color (with alpha) to flash buffer.voidwritePlaceObject2(int shapeId, int depth, RMTransform t, float ratio, boolean addToDisplayList, String aName, RMColor fromColor, RMColor toColor, float opacity, byte[] eventActions) voidwritePlaceObject2(RMFlashShape aShape) voidWrites given rect to flash buffer.voidwriteShapeRecordType1(int fill, int stroke, RMPoint aPoint) voidwriteShapeRecordType2(RMPoint aPoint) voidwriteShapeRecordType2(RMPoint controlPoint, RMPoint anchorPoint) voidwriteString(String aString) Writes given string to flash buffer.
-
Constructor Details
-
RMFlash
Creates a flash writer for given doc.
-
-
Method Details
-
getBytesFlash
public byte[] getBytesFlash()Returns the flash bytes for this flash/document writer. -
indexOfImageData
Get index of given image data in flash buffer (add it if missing). -
indexOfSoundData
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
Writes the given path to the flash buffer. -
beginRecordWithTagId
public void beginRecordWithTagId(int tagId) -
endRecord
public void endRecord() -
writeRect
Writes given rect to flash buffer. -
writeColor
Writes given color to flash buffer. -
writeColorWithAlpha
Writes given color (with alpha) to flash buffer. -
writeString
Writes given string to flash buffer. -
writeShapeRecordType1
-
writeShapeRecordType2
-
writeShapeRecordType2
-
writePlaceObject2
-
writePlaceObject2
public void writePlaceObject2(int shapeId, int depth, RMTransform t, float ratio, boolean addToDisplayList, String aName, RMColor fromColor, RMColor toColor, float opacity, byte[] eventActions)
-