org.xith3d.ui.hud.listeners
Class WidgetSizeAdapter

java.lang.Object
  extended by org.xith3d.ui.hud.listeners.WidgetSizeAdapter
All Implemented Interfaces:
WidgetSizeListener

public abstract class WidgetSizeAdapter
extends java.lang.Object
implements WidgetSizeListener

If a Widget makes use of other Widgets to be built and these Widgets produce events, that are to be catched be the Widget only, then you should create an inner class and let it extend this class to catch them, since it already implements all known Widget-Listeners (with empty method stubs).


Constructor Summary
WidgetSizeAdapter()
           
 
Method Summary
 void onWidgetSizeChanged(Widget widget, float oldWidth, float oldHeight, float newWidth, float newHeight)
          This event is fired when a Widget's size has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetSizeAdapter

public WidgetSizeAdapter()
Method Detail

onWidgetSizeChanged

public void onWidgetSizeChanged(Widget widget,
                                float oldWidth,
                                float oldHeight,
                                float newWidth,
                                float newHeight)
This event is fired when a Widget's size has changed.

Specified by:
onWidgetSizeChanged in interface WidgetSizeListener
Parameters:
widget - the Widget, which's size has changed
oldWidth - the new width of the Widget
oldHeight - the new height of the Widget
newWidth - the new width of the Widget
newHeight - the new height of the Widget