public interface ISWF
FileAttributes
tag and optionally Metadata
tag.Modifier and Type | Method and Description |
---|---|
void |
addFrame(SWFFrame frame)
Add a frame.
|
void |
deleteFrame(int index)
Delete a SWF frame.
|
RGB |
getBackgroundColor()
Get SWF movie background color.
|
EnableDebugger2Tag |
getEnableDebugger2() |
EnableTelemetryTag |
getEnableTelemetry()
Get the
EnableTelemetryTag tag. |
SWFFrame |
getFrameAt(int index)
Get frame by index.
|
int |
getFrameCount()
Get number of frames.
|
float |
getFrameRate()
Get frame delay in 8.8 fixed number of frames per second.
|
Rect |
getFrameSize()
Get SWF frame size in Twips.
|
String |
getMetadata()
Get the Metadata text.
|
ProductInfoTag |
getProductInfo()
Get the
ProductInfoTag tag. |
ScriptLimitsTag |
getScriptLimits()
Get the managed
ScriptLimits tag. |
String |
getTopLevelClass()
Get the QName of the top level class.
|
boolean |
getUseAS3()
Check if the SWF uses ActionScript3.
|
boolean |
getUseDirectBlit()
Check if the SWF uses direct Blit.
|
boolean |
getUseGPU()
Check if the SWF uses GPU.
|
boolean |
getUseNetwork()
Set whether the SWF uses network.
|
int |
getVersion()
Get SWF file version.
|
boolean |
hasMetadata()
Check if the SWF has Metadata tag.
|
void |
setBackgroundColor(RGB color)
Set SWF movie background color.
|
void |
setEnableTelemetry(EnableTelemetryTag tag)
Set the enable telemetry tag associated with the SWF.
|
void |
setFrameRate(float frameRate)
Set frame rate.
|
void |
setFrameSize(Rect rect)
Set frame size.
|
void |
setMetadata(String value)
Set the Metadata text.
|
void |
setProductInfo(ProductInfoTag tag)
Set the product info tag associated with the SWF.
|
void |
setScriptLimits(int maxRecursionDepth,
int scriptTimeoutSeconds)
Set a script limit values.
|
void |
setTopLevelClass(String value)
Set root class name.
|
void |
setUseAS3(boolean value)
Set whether the SWF uses ActionScript3.
|
void |
setUseDirectBlit(boolean value)
Set whether the SWF uses direct Blit.
|
void |
setUseGPU(boolean value)
Set whether the SWF uses GPU.
|
void |
setUseNetwork(boolean value)
Check if the SWF uses network.
|
void |
setVersion(int version)
Set SWF version.
|
int getVersion()
void setVersion(int version)
version
- SWF versionfloat getFrameRate()
void setFrameRate(float frameRate)
frameRate
- frame per secondRect getFrameSize()
void setFrameSize(Rect rect)
rect
- frame sizeint getFrameCount()
void addFrame(SWFFrame frame)
frame
- SWF frame.SWFFrame getFrameAt(int index)
index
- frame index.RGB getBackgroundColor()
void setBackgroundColor(RGB color)
color
- color in RGBString getTopLevelClass()
void setTopLevelClass(String value)
value
- root class nameString getMetadata()
The Metadata tag is an optional tag to describe the SWF file to an external process. The tag embeds XML metadata in the SWF file so that, for example, a search engine can locate this tag, access a title for the SWF file, and display that title in search results.
void setMetadata(String value)
The Metadata tag is an optional tag to describe the SWF file to an external process. The tag embeds XML metadata in the SWF file so that, for example, a search engine can locate this tag, access a title for the SWF file, and display that title in search results.
Setting a non-null value will also set FileAttributes.hasMetadata to true.
value
- Metadata XML string; null value will remove the Metadata
tag on the SWF.boolean hasMetadata()
boolean getUseAS3()
void setUseAS3(boolean value)
value
- true if the SWF uses ActionScript3boolean getUseDirectBlit()
void setUseDirectBlit(boolean value)
value
- true if the SWF uses direct Blit.boolean getUseGPU()
void setUseGPU(boolean value)
value
- true if the SWF uses GPUboolean getUseNetwork()
void setUseNetwork(boolean value)
value
- true if the SWF uses network.void deleteFrame(int index)
index
- frame indexEnableDebugger2Tag getEnableDebugger2()
EnableDebugger2
tag or null.void setScriptLimits(int maxRecursionDepth, int scriptTimeoutSeconds)
maxRecursionDepth
- max recursion depthscriptTimeoutSeconds
- script timeout secondsScriptLimitsTag getScriptLimits()
ScriptLimits
tag.ScriptLimits
tag in this SWF, or null
if
setScriptLimits(int, int)
hasn't be called.ProductInfoTag getProductInfo()
ProductInfoTag
tag.ProductInfoTag
or null if there is no product info
associated with the SWF.void setProductInfo(ProductInfoTag tag)
tag
- the ProductInfoTag, may be null.EnableTelemetryTag getEnableTelemetry()
EnableTelemetryTag
tag.EnableTelemetryTag
or null if there is no enable telemetry
information associated with the SWF.void setEnableTelemetry(EnableTelemetryTag tag)
tag
- the EnableTelemetryTag, may be null.Copyright © 2016 The Apache Software Foundation. All rights reserved.