|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.wisch.joystick.ffeffect.Effect
at.wisch.joystick.ffeffect.ExtendedEffect
public abstract class ExtendedEffect
The Class ExtendedEffect. This is the superclass for certain types of
effects, that have some common properties: they need a direction and they
support fade-in (attack) and fade-out (fade). To understand those, see
ConstantEffect
.
Notes:
- If attack length and fade level are set to 0, attack and fade is not used,
otherwise both are used.
- If the length of an effect is INFINITE_LENGTH, fade-out will never happen.
ConstantEffect
,
Direction
Field Summary |
---|
Fields inherited from class at.wisch.joystick.ffeffect.Effect |
---|
EFFECT_CONSTANT, EFFECT_CUSTOM, EFFECT_DAMPER, EFFECT_FRICTION, EFFECT_INERTIA, EFFECT_RAMP, EFFECT_SAWTOOHDOWN, EFFECT_SAWTOOTHUP, EFFECT_SINE, EFFECT_SPRING, EFFECT_SQUARE, EFFECT_TRIANGLE, INFINITE_LENGTH, MAX_DELAY, MAX_LENGTH, MAX_LEVEL, MIN_LEVEL, NO_BUTTON |
Method Summary | |
---|---|
int |
getAttackLength()
Gets the attack length in ms. |
int |
getAttackLevel()
Gets the attack level. |
Direction |
getDirection()
Gets the direction for the effect. |
int |
getFadeLength()
Gets the fade length in ms. |
int |
getFadeLevel()
Gets the fade level. |
void |
setAttackLength(int attackLength)
Sets the attack length in ms. |
void |
setAttackLevel(int attackLevel)
Sets the attack level. |
void |
setDirection(Direction direction)
Sets the direction for the effect. |
void |
setFadeLength(int fadeLength)
Sets the fade length in ms. |
void |
setFadeLevel(int fadeLevel)
Sets the fade level. |
Methods inherited from class at.wisch.joystick.ffeffect.Effect |
---|
getButtonIndex, getButtonInterval, getDefaultDirection, getEffectDelay, getEffectLength, getEffectType, getName, getStrength, setButtonIndex, setButtonInterval, setDefaultDirection, setEffectDelay, setEffectLength, setStrength |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getAttackLength()
setAttackLength(int)
public void setAttackLength(int attackLength)
attackLength
- the new attack length in ms (an int from 0 to MAX_DELAY (60000
ms ))getAttackLength()
public int getFadeLength()
setFadeLength(int)
public void setFadeLength(int fadeLength)
fadeLength
- the new fade length in ms(an int from 0 to MAX_DELAY (60000 ms
))getFadeLength()
public int getAttackLevel()
setAttackLevel(int)
public void setAttackLevel(int attackLevel)
attackLevel
- the new attack level (an int from 0 to MAX_LEVEL (32767))getAttackLevel()
public int getFadeLevel()
setFadeLevel(int)
public void setFadeLevel(int fadeLevel)
fadeLevel
- the new fade level (an int from 0 to MAX_LEVEL (32767))getFadeLevel()
public Direction getDirection()
setDirection(Direction)
public void setDirection(Direction direction)
direction
- a Direction object instancegetDirection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |