| Constructor and Description |
|---|
SWF()
Constructor.
|
| 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. |
FileAttributesTag |
getFileAttributes()
Expose the FileAttributes tag for
SWFWriter. |
static FileAttributesTag |
getFileAttributes(ISWF swf)
Get a
FileAttributes tag from an ISWF object. |
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.
|
List<SWFFrame> |
getFrames()
Return all the frames in the SWF.
|
Rect |
getFrameSize()
Get SWF frame size in Twips.
|
Header |
getHeader() |
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 |
setEnableDebugger2(EnableDebugger2Tag tag) |
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.
|
public static FileAttributesTag getFileAttributes(ISWF swf)
FileAttributes tag from an ISWF object.swf - ISWF objectFileAttributesTagpublic RGB getBackgroundColor()
ISWFgetBackgroundColor in interface ISWFpublic FileAttributesTag getFileAttributes()
SWFWriter.public SWFFrame getFrameAt(int index)
ISWFgetFrameAt in interface ISWFindex - frame index.public int getFrameCount()
ISWFgetFrameCount in interface ISWFpublic float getFrameRate()
ISWFgetFrameRate in interface ISWFpublic Rect getFrameSize()
ISWFgetFrameSize in interface ISWFpublic Header getHeader()
public String getMetadata()
ISWFThe 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.
getMetadata in interface ISWFpublic String getTopLevelClass()
ISWFgetTopLevelClass in interface ISWFpublic int getVersion()
ISWFgetVersion in interface ISWFpublic boolean hasMetadata()
ISWFhasMetadata in interface ISWFpublic boolean getUseAS3()
ISWFpublic void setUseAS3(boolean value)
ISWFpublic void setBackgroundColor(RGB color)
ISWFsetBackgroundColor in interface ISWFcolor - color in RGBpublic void setFrameRate(float frameRate)
ISWFsetFrameRate in interface ISWFframeRate - frame per secondpublic void setFrameSize(Rect rect)
ISWFsetFrameSize in interface ISWFrect - frame sizepublic void setMetadata(String value)
ISWFThe 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.
setMetadata in interface ISWFvalue - Metadata XML string; null value will remove the Metadata
tag on the SWF.public void setTopLevelClass(String value)
ISWFsetTopLevelClass in interface ISWFvalue - root class namepublic void setUseDirectBlit(boolean value)
ISWFsetUseDirectBlit in interface ISWFvalue - true if the SWF uses direct Blit.public void setUseGPU(boolean value)
ISWFpublic void setUseNetwork(boolean value)
ISWFsetUseNetwork in interface ISWFvalue - true if the SWF uses network.public void setVersion(int version)
ISWFsetVersion in interface ISWFversion - SWF versionpublic boolean getUseDirectBlit()
ISWFgetUseDirectBlit in interface ISWFpublic boolean getUseGPU()
ISWFpublic boolean getUseNetwork()
ISWFgetUseNetwork in interface ISWFpublic void deleteFrame(int index)
ISWFdeleteFrame in interface ISWFindex - frame indexpublic void setEnableDebugger2(EnableDebugger2Tag tag)
public EnableDebugger2Tag getEnableDebugger2()
getEnableDebugger2 in interface ISWFEnableDebugger2 tag or null.public void setScriptLimits(int maxRecursionDepth,
int scriptTimeoutSeconds)
ISWFsetScriptLimits in interface ISWFmaxRecursionDepth - max recursion depthscriptTimeoutSeconds - script timeout secondspublic ScriptLimitsTag getScriptLimits()
ISWFScriptLimits tag.getScriptLimits in interface ISWFScriptLimits tag in this SWF, or null if
ISWF.setScriptLimits(int, int) hasn't be called.public ProductInfoTag getProductInfo()
ISWFProductInfoTag tag.getProductInfo in interface ISWFProductInfoTag or null if there is no product info
associated with the SWF.public void setProductInfo(ProductInfoTag tag)
ISWFsetProductInfo in interface ISWFtag - the ProductInfoTag, may be null.public EnableTelemetryTag getEnableTelemetry()
ISWFEnableTelemetryTag tag.getEnableTelemetry in interface ISWFEnableTelemetryTag or null if there is no enable telemetry
information associated with the SWF.public void setEnableTelemetry(EnableTelemetryTag tag)
ISWFsetEnableTelemetry in interface ISWFtag - the EnableTelemetryTag, may be null.Copyright © 2016 The Apache Software Foundation. All rights reserved.