public class TrackEffect<BEAN extends EffectBase>
extends java.lang.Object
Added in v3.27.0 The track effect bean
Modifier and Type | Field and Description |
---|---|
protected BEAN |
bean |
protected long |
duration |
protected long |
startTime |
Constructor and Description |
---|
TrackEffect(long startTime,
long duration,
BEAN bean)
Build Track Effect Object
|
Modifier and Type | Method and Description |
---|---|
BEAN |
getBean()
Get the bean of the track
|
long |
getDuration()
Get the duration in the track
|
long |
getDuration(java.util.concurrent.TimeUnit timeUnit)
Get the duration in the track
|
long |
getEndTime()
Get the end time in the track
|
long |
getEndTime(java.util.concurrent.TimeUnit timeUnit)
Get the end time in the track
|
int |
getResId()
Gets the id of a resource.
|
Source |
getSource()
Get the file of a resource.
|
long |
getStartTime()
Get the start time in the track
|
long |
getStartTime(java.util.concurrent.TimeUnit timeUnit)
Get the start time in the track
|
int |
getViewId()
Gets the id of an effect.
|
void |
setDuration(long duration,
java.util.concurrent.TimeUnit timeUnit)
Set the execute duration in the track
|
void |
setSource(Source source)
Sets the file of a resource.
|
void |
setStartTime(long startTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the start time in the track
|
void |
setViewId(int aId)
Sets the id of an effect.
|
protected long startTime
protected long duration
protected BEAN extends EffectBase bean
public TrackEffect(long startTime, long duration, BEAN bean)
startTime,
- the start time of track effect, Unit: millisecondsduration,
- the duration of track effect, Unit: millisecondsbean,
- the bean of track effectpublic void setStartTime(long startTime, java.util.concurrent.TimeUnit timeUnit)
startTime
- timeUnit
- TimeUnitpublic void setDuration(long duration, java.util.concurrent.TimeUnit timeUnit)
timeUnit
- TimeUnitpublic int getViewId()
public void setViewId(int aId)
id
- It is not recommended to call this method.public int getResId()
public Source getSource()
public void setSource(Source source)
source
- Sourcepublic long getStartTime()
public long getStartTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- TimeUnitpublic long getEndTime()
public long getEndTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- TimeUnitpublic long getDuration()
public long getDuration(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public BEAN getBean()