public static class CustomEffect.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.lang.String effectName)
Initiate your custom effect
|
| Modifier and Type | Method and Description |
|---|---|
CustomEffect |
build() |
CustomEffect.Builder |
setParameter(java.lang.String paramKey,
java.lang.Object paramValue)
set parameter to the attributes with its value
|
public Builder(java.lang.String effectName)
throws java.lang.RuntimeException
effectName - custom effect name from EffectFactory.createEffect(String)java.lang.RuntimeException - exception when effect name is emptypublic CustomEffect.Builder setParameter(java.lang.String paramKey, java.lang.Object paramValue)
paramKey - attribute key for Effect.setParameter(String, Object)paramValue - value for Effect.setParameter(String, Object)public CustomEffect build()