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
objectFileAttributesTag
public RGB getBackgroundColor()
ISWF
getBackgroundColor
in interface ISWF
public FileAttributesTag getFileAttributes()
SWFWriter
.public SWFFrame getFrameAt(int index)
ISWF
getFrameAt
in interface ISWF
index
- frame index.public int getFrameCount()
ISWF
getFrameCount
in interface ISWF
public float getFrameRate()
ISWF
getFrameRate
in interface ISWF
public Rect getFrameSize()
ISWF
getFrameSize
in interface ISWF
public Header getHeader()
public String getMetadata()
ISWF
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.
getMetadata
in interface ISWF
public String getTopLevelClass()
ISWF
getTopLevelClass
in interface ISWF
public int getVersion()
ISWF
getVersion
in interface ISWF
public boolean hasMetadata()
ISWF
hasMetadata
in interface ISWF
public boolean getUseAS3()
ISWF
public void setUseAS3(boolean value)
ISWF
public void setBackgroundColor(RGB color)
ISWF
setBackgroundColor
in interface ISWF
color
- color in RGBpublic void setFrameRate(float frameRate)
ISWF
setFrameRate
in interface ISWF
frameRate
- frame per secondpublic void setFrameSize(Rect rect)
ISWF
setFrameSize
in interface ISWF
rect
- frame sizepublic void setMetadata(String value)
ISWF
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.
setMetadata
in interface ISWF
value
- Metadata XML string; null value will remove the Metadata
tag on the SWF.public void setTopLevelClass(String value)
ISWF
setTopLevelClass
in interface ISWF
value
- root class namepublic void setUseDirectBlit(boolean value)
ISWF
setUseDirectBlit
in interface ISWF
value
- true if the SWF uses direct Blit.public void setUseGPU(boolean value)
ISWF
public void setUseNetwork(boolean value)
ISWF
setUseNetwork
in interface ISWF
value
- true if the SWF uses network.public void setVersion(int version)
ISWF
setVersion
in interface ISWF
version
- SWF versionpublic boolean getUseDirectBlit()
ISWF
getUseDirectBlit
in interface ISWF
public boolean getUseGPU()
ISWF
public boolean getUseNetwork()
ISWF
getUseNetwork
in interface ISWF
public void deleteFrame(int index)
ISWF
deleteFrame
in interface ISWF
index
- frame indexpublic void setEnableDebugger2(EnableDebugger2Tag tag)
public EnableDebugger2Tag getEnableDebugger2()
getEnableDebugger2
in interface ISWF
EnableDebugger2
tag or null.public void setScriptLimits(int maxRecursionDepth, int scriptTimeoutSeconds)
ISWF
setScriptLimits
in interface ISWF
maxRecursionDepth
- max recursion depthscriptTimeoutSeconds
- script timeout secondspublic ScriptLimitsTag getScriptLimits()
ISWF
ScriptLimits
tag.getScriptLimits
in interface ISWF
ScriptLimits
tag in this SWF, or null
if
ISWF.setScriptLimits(int, int)
hasn't be called.public ProductInfoTag getProductInfo()
ISWF
ProductInfoTag
tag.getProductInfo
in interface ISWF
ProductInfoTag
or null if there is no product info
associated with the SWF.public void setProductInfo(ProductInfoTag tag)
ISWF
setProductInfo
in interface ISWF
tag
- the ProductInfoTag, may be null.public EnableTelemetryTag getEnableTelemetry()
ISWF
EnableTelemetryTag
tag.getEnableTelemetry
in interface ISWF
EnableTelemetryTag
or null if there is no enable telemetry
information associated with the SWF.public void setEnableTelemetry(EnableTelemetryTag tag)
ISWF
setEnableTelemetry
in interface ISWF
tag
- the EnableTelemetryTag, may be null.Copyright © 2016 The Apache Software Foundation. All rights reserved.