public class TrackEffect<BEAN extends EffectBase>
extends java.lang.Object
v3.27.0新增 轨道特效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)
构建轨道对象
|
Modifier and Type | Method and Description |
---|---|
BEAN |
getBean()
获取轨道效果的Bean对象
|
long |
getDuration()
获取在轨道的持续时间
|
long |
getDuration(java.util.concurrent.TimeUnit timeUnit)
获取在轨道的持续时间
|
long |
getEndTime()
获取在轨道的结束时间
|
long |
getEndTime(java.util.concurrent.TimeUnit timeUnit)
获取在轨道的结束时间
|
int |
getResId()
获取资源id
|
Source |
getSource()
获取资源
|
long |
getStartTime()
获取在轨道的开始时间
|
long |
getStartTime(java.util.concurrent.TimeUnit timeUnit)
获取在轨道的开始时间
|
int |
getViewId()
获取效果id
|
void |
setDuration(long duration,
java.util.concurrent.TimeUnit timeUnit)
设置在轨道的持续时间
|
void |
setSource(Source source)
设置资源
|
void |
setStartTime(long startTime,
java.util.concurrent.TimeUnit timeUnit)
设置在轨道的开始时间
|
void |
setViewId(int aId)
设置效果id
|
protected long startTime
protected long duration
protected BEAN extends EffectBase bean
public TrackEffect(long startTime, long duration, BEAN bean)
startTime,
- 轨道的开始时间,单位:毫秒duration,
- 轨道的持续时间,单位:毫秒bean,
- 轨道的bean对象public void setStartTime(long startTime, java.util.concurrent.TimeUnit timeUnit)
startTime
- 开始时间timeUnit
- 时间单位public void setDuration(long duration, java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public int getViewId()
public void setViewId(int aId)
id
- 效果唯一标识符,不建议用户自己调用该接口public int getResId()
public Source getSource()
public void setSource(Source source)
source
- 资源public long getStartTime()
public long getStartTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public long getEndTime()
public long getEndTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public long getDuration()
public long getDuration(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- 时间单位public BEAN getBean()