|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.effects.impl.FollowMouse
public class FollowMouse
This Nifty Effect will change the position of the element the effect is attached to to the current mouse pointer position. Make sure that the element you apply this effect to is a child of an element that uses childLayout="absolute" or this effect will not work correctly.
| Constructor Summary | |
|---|---|
FollowMouse()
|
|
| Method Summary | |
|---|---|
void |
activate(Nifty nifty,
Element element,
EffectProperties parameter)
initialize effect. |
void |
deactivate()
deactivate the effect. |
void |
execute(Element element,
float normalizedTime,
Falloff falloff,
NiftyRenderEngine r)
execute the effect. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FollowMouse()
| Method Detail |
|---|
public void activate(Nifty nifty,
Element element,
EffectProperties parameter)
EffectImpl
activate in interface EffectImplnifty - Niftyelement - Elementparameter - parameters
public void execute(Element element,
float normalizedTime,
Falloff falloff,
NiftyRenderEngine r)
EffectImpl
execute in interface EffectImplelement - the ElementnormalizedTime - current effect timefalloff - the Falloff class for hover effects. This is supposed to be null for none hover effects.r - RenderDevice to usepublic void deactivate()
EffectImpl
deactivate in interface EffectImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||