public class EffectBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Source |
mSource |
protected int |
resId |
protected int |
viewId |
Constructor and Description |
---|
EffectBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIsInvalid()
Checks the data is invalid
|
void |
copy(EffectBase base) |
java.lang.String |
getPath()
Deprecated.
使用
getSource() 替代 |
int |
getResId()
获取资源id
|
Source |
getSource()
获取资源
|
int |
getViewId()
获取效果id
|
protected java.lang.String |
readString(java.lang.String path) |
void |
setPath(java.lang.String path)
Deprecated.
使用
setSource(Source) 替代 |
void |
setResId(int id)
Deprecated.
|
void |
setSource(Source source)
设置资源
|
void |
setViewId(int id)
设置效果id
|
java.lang.String |
toString() |
public int getResId()
@Deprecated public void setResId(int id)
public int getViewId()
public void setViewId(int id)
id
- 效果唯一标识符,不建议用户自己调用该接口@Deprecated public java.lang.String getPath()
getSource()
替代@Deprecated public void setPath(java.lang.String path)
setSource(Source)
替代path
- public Source getSource()
public void setSource(Source source)
source
- 资源protected java.lang.String readString(java.lang.String path)
public void copy(EffectBase base)
public boolean checkIsInvalid()
public java.lang.String toString()
toString
in class java.lang.Object