|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.utils.WidgetMover
org.xith3d.ui.hud.utils.MouseHoverWidgetMover
public class MouseHoverWidgetMover
A MouseHoverWidgetMover interpolatedly moves a Widget from its current location to a destination location when the mouse hovers in and out.
| Constructor Summary | |
|---|---|
MouseHoverWidgetMover(Widget widget)
Creates a new MouseHoverWidgetMover for the given Widget and destination location. |
|
MouseHoverWidgetMover(Widget widget,
float destX,
float destY,
float speed)
Creates a new MouseHoverWidgetMover for the given Widget and destination location. |
|
MouseHoverWidgetMover(Widget widget,
org.openmali.vecmath2.Tuple2f destLocation,
float speed)
Creates a new MouseHoverWidgetMover for the given Widget and destination location. |
|
| Method Summary | |
|---|---|
long |
getMouseEnteredDelay()
|
long |
getMouseLeftDelay()
|
boolean |
isBlocked()
If blocked, any mouse input is ignored. |
protected void |
onMouseEntered()
This method is invoked, when the mouse entered the Widget's area. |
protected void |
onMouseLeft()
This method is invoked, when the mouse left the Widget's area. |
protected void |
onMovementStopped()
This method is invoked when the Widget has reached its destination location. |
void |
setBlocked(boolean blocked)
Sets the MouseHoverWidgetMover blocked or unblocked. |
void |
setMouseEnteredDelay(long delay)
Sets the delay for the onMouseEntered event. |
void |
setMouseLeftDelay(long delay)
Sets the delay for the onMouseLeft event. |
| Methods inherited from class org.xith3d.ui.hud.utils.WidgetMover |
|---|
getDestinationLocation, getDestinationLocationX, getDestinationLocationY, getSpeed, getStartLocation, getStartLocationX, getStartLocationY, getWidget, invert, isMoving, setDestinationLocation, setDestinationLocation, setSpeed, startMoving |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MouseHoverWidgetMover(Widget widget,
float destX,
float destY,
float speed)
widget - the Widget to be moveddestX - the destination location x-coordinatedestY - the destination location y-coordinatespeed - the speed for the movement (in units per second)
public MouseHoverWidgetMover(Widget widget,
org.openmali.vecmath2.Tuple2f destLocation,
float speed)
widget - the Widget to be moveddestLocation - the destination locationspeed - the speed for the movement (in units per second)public MouseHoverWidgetMover(Widget widget)
widget - the Widget to be moved| Method Detail |
|---|
public void setBlocked(boolean blocked)
blocked - public boolean isBlocked()
public void setMouseEnteredDelay(long delay)
delay - public long getMouseEnteredDelay()
public void setMouseLeftDelay(long delay)
delay - public long getMouseLeftDelay()
protected void onMouseEntered()
protected void onMouseLeft()
protected void onMovementStopped()
onMovementStopped in class WidgetMover
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||