public abstract class AliyunAETemplateAsset
extends java.lang.Object
sdk version >= v3.35.0
template asset base class
Modifier and Type | Field and Description |
---|---|
protected Bitmap |
b |
protected Bitmap |
f |
protected java.lang.String |
mAssetPath |
protected Bitmap |
mBitmap |
protected java.lang.String |
mDefaultAssetPath |
static int |
TYPE_MEDIA |
static int |
TYPE_TEXT |
static int |
TYPE_TEXT_ANIM |
protected JSONObject |
ui |
Constructor and Description |
---|
AliyunAETemplateAsset(java.lang.String folder,
JSONObject asset,
TemplateModel templateModel,
java.util.List<<any>> timeRanges) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
draw(Canvas canvas,
int activeLayer) |
abstract Rect |
getEditRect()
get asset position
|
protected float[] |
getFloatArray(JSONArray array) |
int |
getIndex()
get asset index
|
protected int[] |
getIntArray(JSONArray array) |
abstract JSONObject |
getJSONObj(java.lang.String folder) |
java.lang.String |
getKey()
get asset key
|
double |
getTimelineIn()
get asset time in
|
double |
getTimelineOut()
get asset time out
|
java.util.List<<any>> |
getTimeRanges()
get asset appear time ranges
|
abstract Matrix |
getTransform()
get asset transform matrix
|
abstract void |
restore()
restore default asset
|
public static final int TYPE_MEDIA
public static final int TYPE_TEXT
public static final int TYPE_TEXT_ANIM
protected final Bitmap f
protected final Bitmap b
protected JSONObject ui
protected Bitmap mBitmap
protected java.lang.String mAssetPath
protected java.lang.String mDefaultAssetPath
public AliyunAETemplateAsset(java.lang.String folder, JSONObject asset, TemplateModel templateModel, java.util.List<<any>> timeRanges) throws JSONException
JSONException
protected int[] getIntArray(JSONArray array) throws JSONException
JSONException
protected float[] getFloatArray(JSONArray array) throws JSONException
JSONException
protected abstract void draw(Canvas canvas, int activeLayer)
public abstract JSONObject getJSONObj(java.lang.String folder) throws JSONException
JSONException
public double getTimelineIn()
public double getTimelineOut()
public java.lang.String getKey()
public int getIndex()
public java.util.List<<any>> getTimeRanges()
public abstract Matrix getTransform()
public abstract Rect getEditRect()
public abstract void restore()