|
||||||||||
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
at.wisch.joystick.ffeffect.PeriodicEffect
public abstract class PeriodicEffect
The Class PeriodicEffect. A periodic effect a wave-shaped effect that repeats itself over time. The type determines the shape of the wave and the parameters determine the dimensions of the wave: period, magnitude, offset and phase.
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 |
getMagnitude()
Gets the magnitude (the peak value of the wave). |
int |
getOffset()
Gets the offset (the mean value of the wave). |
int |
getPeriod()
Gets the period of the wave in ms. |
int |
getPhase()
Gets the phase (the horizontal cycle shift in hundredth of a degree). |
int |
getStrength()
Gets the strength. |
void |
setMagnitude(int magnitude)
Sets the magnitude (the peak value of the wave). |
void |
setOffset(int offset)
Sets the offset (the mean value of the wave). |
void |
setPeriod(int period)
Sets the period of the wave in ms. |
void |
setPhase(int phase)
Sets the phase (the horizontal cycle shift in hundredth of a degree). |
void |
setStrength(int strength)
Sets the strength for an effect. |
Methods inherited from class at.wisch.joystick.ffeffect.ExtendedEffect |
---|
getAttackLength, getAttackLevel, getDirection, getFadeLength, getFadeLevel, setAttackLength, setAttackLevel, setDirection, setFadeLength, setFadeLevel |
Methods inherited from class at.wisch.joystick.ffeffect.Effect |
---|
getButtonIndex, getButtonInterval, getDefaultDirection, getEffectDelay, getEffectLength, getEffectType, getName, setButtonIndex, setButtonInterval, setDefaultDirection, setEffectDelay, setEffectLength |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getPeriod()
public void setPeriod(int period)
period
- the new period of the wave in ms (value from 0 to MAX_DELAY
(60000))public int getMagnitude()
public void setMagnitude(int magnitude)
magnitude
- the new magnitude (peak value of the wave) (value from
MIN_LEVEL (-32768) to MAX_LEVEL(32767))public int getOffset()
public void setOffset(int offset)
offset
- the new offset (mean value of the wave) (value from MIN_LEVEL
(-32768) to MAX_LEVEL(32767))public int getPhase()
public void setPhase(int phase)
phase
- the new phase (horizontal cycle shift in hundredth of a
degree) (value from 0 to 35999)public int getStrength()
getStrength
in class Effect
getMagnitude()
public void setStrength(int strength)
setStrength
in class Effect
strength
- the new strength (an int from 0 to MAX_LEVEL (32767))setMagnitude(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |