org.xith3d.ui.hud.listeners
Interface WidgetLocationListener

All Known Implementing Classes:
WidgetEventsReceiverAdapter, WidgetLocationAdapter

public interface WidgetLocationListener

A WidgetLocationListener is notified of any Widget location change of the assotiated Widget.


Method Summary
 void onWidgetDragStarted(Widget widget)
          This event is fired when a Widget is started to be dragged.
 void onWidgetDragStopped(Widget widget)
          This event is fired when a Widget is stopped to be dragged.
 void onWidgetLocationChanged(Widget widget, float oldLeft, float oldTop, float newLeft, float newTop)
          This event is fired when a Widget's location has changed.
 

Method Detail

onWidgetDragStarted

void onWidgetDragStarted(Widget widget)
This event is fired when a Widget is started to be dragged.

Parameters:
widget - the Widget, which is dragged

onWidgetDragStopped

void onWidgetDragStopped(Widget widget)
This event is fired when a Widget is stopped to be dragged.

Parameters:
widget - the Widget, which was dragged

onWidgetLocationChanged

void onWidgetLocationChanged(Widget widget,
                             float oldLeft,
                             float oldTop,
                             float newLeft,
                             float newTop)
This event is fired when a Widget's location has changed.

Parameters:
widget - the Widget, which's location has changed
oldLeft - the old left coordinate of the Widget
oldTop - the old top coordinate of the Widget
newLeft - the new left coordinate of the Widget
newTop - the new top coordinate of the Widget