|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SWFTagTypes
Interface for passing SWF tag types.
Method Summary | |
---|---|
void |
tagButtonCXForm(int buttonId,
ColorTransform transform)
Description of the Method |
void |
tagDefineBits(int id,
byte[] imageData)
JPEG image data only - header/encoding data is in tagJPEGTables tag |
void |
tagDefineBitsJPEG2(int id,
byte[] data)
|
void |
tagDefineBitsJPEG2(int id,
java.io.InputStream jpegImage)
|
void |
tagDefineBitsJPEG3(int id,
byte[] imageData,
byte[] alphaData)
JPEG image and encoding data with alpha channel bitmap |
void |
tagDefineBitsLossless(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
|
void |
tagDefineBitsLossless2(int id,
int format,
int width,
int height,
Color[] colors,
byte[] imageData)
|
SWFActions |
tagDefineButton(int id,
java.util.List buttonRecords)
|
SWFActions |
tagDefineButton2(int id,
boolean trackAsMenu,
java.util.List buttonRecord2s)
|
void |
tagDefineButtonSound(int buttonId,
int rollOverSoundId,
SoundInfo rollOverSoundInfo,
int rollOutSoundId,
SoundInfo rollOutSoundInfo,
int pressSoundId,
SoundInfo pressSoundInfo,
int releaseSoundId,
SoundInfo releaseSoundInfo)
Define the sound for a button |
SWFVectors |
tagDefineFont(int id,
int numGlyphs)
The SWFVectors object returned will be called numGlyphs times to pass the vector information for each glyph (each glyph is terminated by calling SWFVectors.done() ) |
SWFVectors |
tagDefineFont2(int id,
int flags,
java.lang.String name,
int numGlyphs,
int ascent,
int descent,
int leading,
int[] codes,
int[] advances,
Rect[] bounds,
int[] kernCodes1,
int[] kernCodes2,
int[] kernAdjustments)
Description of the Method |
void |
tagDefineFontInfo(int fontId,
java.lang.String fontName,
int flags,
int[] codes)
|
SWFShape |
tagDefineMorphShape(int id,
Rect startBounds,
Rect endBounds)
Description of the Method |
void |
tagDefineQuickTimeMovie(int id,
java.lang.String filename)
Description of the Method |
SWFShape |
tagDefineShape(int id,
Rect outline)
|
SWFShape |
tagDefineShape2(int id,
Rect outline)
|
SWFShape |
tagDefineShape3(int id,
Rect outline)
|
void |
tagDefineSound(int id,
int format,
int frequency,
boolean bits16,
boolean stereo,
int sampleCount,
byte[] soundData)
|
SWFTagTypes |
tagDefineSprite(int id)
Description of the Method |
SWFText |
tagDefineText(int id,
Rect bounds,
Matrix matrix)
|
SWFText |
tagDefineText2(int id,
Rect bounds,
Matrix matrix)
Allows alpha colors |
void |
tagDefineTextField(int fieldId,
java.lang.String fieldName,
java.lang.String initialText,
Rect boundary,
int flags,
AlphaColor textColor,
int alignment,
int fontId,
int fontSize,
int charLimit,
int leftMargin,
int rightMargin,
int indentation,
int lineSpacing)
|
void |
tagEnableDebug(byte[] password)
Description of the Method |
void |
tagExport(java.lang.String[] names,
int[] ids)
Description of the Method |
void |
tagGenerator(byte[] data)
In Generator templates. |
void |
tagGeneratorCommand(byte[] data)
In Generator templates. |
void |
tagGeneratorFont(byte[] data)
In Generator templates. |
void |
tagGeneratorText(byte[] data)
In Generator templates. |
void |
tagImport(java.lang.String movieName,
java.lang.String[] names,
int[] ids)
Description of the Method |
void |
tagJPEGTables(byte[] jpegEncodingData)
Only one tag per SWF - holds common JPEG encoding data |
void |
tagNameCharacter(byte[] data)
In Generator templates. |
void |
tagProtect(byte[] password)
|
void |
tagSerialNumber(java.lang.String serialNumber)
In files produced by Generator... |
void |
tagSetBackgroundColor(Color color)
Description of the Method |
Methods inherited from interface pt.tumba.parser.swf.SWFSpriteTagTypes |
---|
tagDoAction, tagEnd, tagFrameLabel, tagFreeCharacter, tagPlaceObject, tagPlaceObject2, tagRemoveObject, tagRemoveObject2, tagShowFrame, tagSoundStreamBlock, tagSoundStreamHead, tagSoundStreamHead2, tagStartSound |
Methods inherited from interface pt.tumba.parser.swf.SWFTags |
---|
tag |
Methods inherited from interface pt.tumba.parser.swf.SWFHeader |
---|
header |
Method Detail |
---|
void tagDefineSound(int id, int format, int frequency, boolean bits16, boolean stereo, int sampleCount, byte[] soundData) throws java.io.IOException
format
- one of the SWFConstants.SOUND_FORMAT_* constantsfrequency
- one of the SWFConstants.SOUND_FREQ_* constantssoundData
- format-dependent sound dataid
- Description of the Parameterbits16
- Description of the Parameterstereo
- Description of the ParametersampleCount
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineButtonSound(int buttonId, int rollOverSoundId, SoundInfo rollOverSoundInfo, int rollOutSoundId, SoundInfo rollOutSoundInfo, int pressSoundId, SoundInfo pressSoundInfo, int releaseSoundId, SoundInfo releaseSoundInfo) throws java.io.IOException
buttonId
- Description of the ParameterrollOverSoundId
- Description of the ParameterrollOverSoundInfo
- Description of the ParameterrollOutSoundId
- Description of the ParameterrollOutSoundInfo
- Description of the ParameterpressSoundId
- Description of the ParameterpressSoundInfo
- Description of the ParameterreleaseSoundId
- Description of the ParameterreleaseSoundInfo
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFShape tagDefineShape(int id, Rect outline) throws java.io.IOException
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFShape tagDefineShape2(int id, Rect outline) throws java.io.IOException
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFShape tagDefineShape3(int id, Rect outline) throws java.io.IOException
id
- Description of the Parameteroutline
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFActions tagDefineButton(int id, java.util.List buttonRecords) throws java.io.IOException
buttonRecords
- contains ButtonRecord objectsid
- Description of the Parameter
java.io.IOException
- Description of the Exceptioncom.anotherbigidea.flash.structs.ButtonRecord
void tagButtonCXForm(int buttonId, ColorTransform transform) throws java.io.IOException
buttonId
- Description of the Parametertransform
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFActions tagDefineButton2(int id, boolean trackAsMenu, java.util.List buttonRecord2s) throws java.io.IOException
buttonRecord2s
- contains ButtonRecord2 objectsid
- Description of the ParametertrackAsMenu
- Description of the Parameter
java.io.IOException
- Description of the Exceptioncom.anotherbigidea.flash.structs.ButtonRecord2
void tagSetBackgroundColor(Color color) throws java.io.IOException
color
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFVectors tagDefineFont(int id, int numGlyphs) throws java.io.IOException
id
- Description of the ParameternumGlyphs
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFText tagDefineText(int id, Rect bounds, Matrix matrix) throws java.io.IOException
id
- Description of the Parameterbounds
- Description of the Parametermatrix
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFText tagDefineText2(int id, Rect bounds, Matrix matrix) throws java.io.IOException
id
- Description of the Parameterbounds
- Description of the Parametermatrix
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineFontInfo(int fontId, java.lang.String fontName, int flags, int[] codes) throws java.io.IOException
flags
- see FONT_* constants in SWFConstants.javafontId
- Description of the ParameterfontName
- Description of the Parametercodes
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBitsJPEG2(int id, byte[] data) throws java.io.IOException
data
- must contain the header data - use the
InputStream version when using an external JPEGid
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBitsJPEG2(int id, java.io.InputStream jpegImage) throws java.io.IOException
jpegImage
- must be a baseline JPEG (not a progressive JPEG)id
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBits(int id, byte[] imageData) throws java.io.IOException
id
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagJPEGTables(byte[] jpegEncodingData) throws java.io.IOException
jpegEncodingData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBitsJPEG3(int id, byte[] imageData, byte[] alphaData) throws java.io.IOException
alphaData
- is zlib compressedid
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBitsLossless(int id, int format, int width, int height, Color[] colors, byte[] imageData) throws java.io.IOException
format
- one of the SWFConstants.BITMAP_FORMAT_n_BIT
constantsid
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parametercolors
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineBitsLossless2(int id, int format, int width, int height, Color[] colors, byte[] imageData) throws java.io.IOException
format
- one of the SWFConstants.BITMAP_FORMAT_n_BIT
constantsid
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parametercolors
- Description of the ParameterimageData
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagProtect(byte[] password) throws java.io.IOException
password
- may be null
java.io.IOException
- Description of the Exceptionvoid tagDefineTextField(int fieldId, java.lang.String fieldName, java.lang.String initialText, Rect boundary, int flags, AlphaColor textColor, int alignment, int fontId, int fontSize, int charLimit, int leftMargin, int rightMargin, int indentation, int lineSpacing) throws java.io.IOException
flags
- see TEXTFIELD_* constants in SWFConstants.javafieldId
- Description of the ParameterfieldName
- Description of the ParameterinitialText
- Description of the Parameterboundary
- Description of the ParametertextColor
- Description of the Parameteralignment
- Description of the ParameterfontId
- Description of the ParameterfontSize
- Description of the ParametercharLimit
- Description of the ParameterleftMargin
- Description of the ParameterrightMargin
- Description of the Parameterindentation
- Description of the ParameterlineSpacing
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagDefineQuickTimeMovie(int id, java.lang.String filename) throws java.io.IOException
id
- Description of the Parameterfilename
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFTagTypes tagDefineSprite(int id) throws java.io.IOException
id
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFShape tagDefineMorphShape(int id, Rect startBounds, Rect endBounds) throws java.io.IOException
id
- Description of the ParameterstartBounds
- Description of the ParameterendBounds
- Description of the Parameter
java.io.IOException
- Description of the ExceptionSWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments) throws java.io.IOException
id
- Description of the Parameterflags
- Description of the Parametername
- Description of the ParameternumGlyphs
- Description of the Parameterascent
- Description of the Parameterdescent
- Description of the Parameterleading
- Description of the Parametercodes
- Description of the Parameteradvances
- Description of the Parameterbounds
- Description of the ParameterkernCodes1
- Description of the ParameterkernCodes2
- Description of the ParameterkernAdjustments
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagExport(java.lang.String[] names, int[] ids) throws java.io.IOException
names
- Description of the Parameterids
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagImport(java.lang.String movieName, java.lang.String[] names, int[] ids) throws java.io.IOException
movieName
- Description of the Parameternames
- Description of the Parameterids
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagEnableDebug(byte[] password) throws java.io.IOException
password
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagSerialNumber(java.lang.String serialNumber) throws java.io.IOException
serialNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagGenerator(byte[] data) throws java.io.IOException
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagGeneratorText(byte[] data) throws java.io.IOException
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagGeneratorCommand(byte[] data) throws java.io.IOException
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagNameCharacter(byte[] data) throws java.io.IOException
data
- Description of the Parameter
java.io.IOException
- Description of the Exceptionvoid tagGeneratorFont(byte[] data) throws java.io.IOException
data
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |