java.lang.Object | ||
↳ | org.libpag.PAGLayer | |
↳ | org.libpag.PAGComposition |
Known Direct Subclasses |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PAGComposition(long nativeContext) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static PAGComposition |
Make(int width, int height)
Make a empty PAGComposition with specified size.
| ||||||||||
void |
addLayer(PAGLayer pagLayer)
Add PAGLayer to current PAGComposition at the top.
| ||||||||||
void |
addLayerAt(PAGLayer pagLayer, int index)
Add PAGLayer to current PAGComposition at the specified index.
| ||||||||||
ByteBuffer |
audioBytes()
The audio data of this composition, which is an AAC audio in an MPEG-4 container.
| ||||||||||
PAGMarker[] |
audioMarkers()
Returns the audio markers of this composition.
| ||||||||||
long |
audioStartTime()
Indicates when the first frame of the audio plays in the composition's timeline.
| ||||||||||
boolean |
contains(PAGLayer pagLayer)
Check whether current PAGComposition contains the specified pagLayer.
| ||||||||||
PAGLayer |
getLayerAt(int index)
Returns the child layer that exists at the specified index.
| ||||||||||
int |
getLayerIndex(PAGLayer layer)
Returns the index position of a child layer.
| ||||||||||
PAGLayer[] |
getLayersByName(String layerName)
Returns an array of layers that match the specified layer name.
| ||||||||||
PAGLayer[] |
getLayersUnderPoint(float localX, float localY)
Returns an array of layers that lie under the specified point.
| ||||||||||
int |
height()
Returns the height of Composition.
| ||||||||||
int |
numChildren()
Returns the number of child layers of this composition.
| ||||||||||
void |
removeAllLayers()
Remove all PAGLayers from current PAGComposition.
| ||||||||||
PAGLayer |
removeLayer(PAGLayer pagLayer)
Remove the specified PAGLayer from current PAGComposition.
| ||||||||||
PAGLayer |
removeLayerAt(int index)
Remove the PAGLayer at specified index from current PAGComposition.
| ||||||||||
void |
setContentSize(int width, int height)
Set the size of the Composition.
| ||||||||||
void |
setLayerIndex(PAGLayer layer, int index)
Changes the position of an existing child in the container.
| ||||||||||
void |
swapLayer(PAGLayer pagLayer1, PAGLayer pagLayer2)
Swap the layers.
| ||||||||||
void |
swapLayerAt(int index1, int index2)
Swap the layers at the specified index.
| ||||||||||
int |
width()
The width of Composition.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
| |||||||||||
From class
java.lang.Object
|
Make a empty PAGComposition with specified size.
Add PAGLayer to current PAGComposition at the specified index.
The audio data of this composition, which is an AAC audio in an MPEG-4 container.
Indicates when the first frame of the audio plays in the composition's timeline.
Check whether current PAGComposition contains the specified pagLayer.
Returns the child layer that exists at the specified index.
index | The index position of the child layer. |
---|
Returns the index position of a child layer.
layer | The layer instance to identify. |
---|
Returns an array of layers that match the specified layer name.
Returns an array of layers that lie under the specified point. The point is in pixels and from this PAGComposition's local coordinates.
Returns the height of Composition.
Returns the number of child layers of this composition.
Remove all PAGLayers from current PAGComposition.
Remove the specified PAGLayer from current PAGComposition.
Remove the PAGLayer at specified index from current PAGComposition.
Set the size of the Composition.
Changes the position of an existing child in the container. This affects the layering of child layers.
layer | The child layer for which you want to change the index number. |
---|---|
index | The resulting index number for the child layer. |
Swap the layers at the specified index.
The width of Composition.