org.xith3d.ui.hud.listeners
Class WidgetSizeAdapter
java.lang.Object
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).
|
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 |
WidgetSizeAdapter
public WidgetSizeAdapter()
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 changedoldWidth - the new width of the WidgetoldHeight - the new height of the WidgetnewWidth - the new width of the WidgetnewHeight - the new height of the Widget