org.xith3d.ui.hud.widgets
Class Button

java.lang.Object
  extended by org.xith3d.ui.hud.base.WidgetBase
      extended by org.xith3d.ui.hud.base.RectangularWidget
          extended by org.xith3d.ui.hud.base.AbstractButton
              extended by org.xith3d.ui.hud.widgets.Button
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.types.twodee.Positioned2f, org.openmali.types.twodee.Positioned2fRO, org.openmali.types.twodee.Sized2f, org.openmali.types.twodee.Sized2fRO, TextWidget, Widget
Direct Known Subclasses:
ToggleButton

public class Button
extends AbstractButton
implements TextWidget

A simple button Widget. You may specify an image for each state (normal, hover, pressed). You may specify a text.


Nested Class Summary
static class Button.Description
          This class is used to describe a Button Widget.
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.AbstractButton
AbstractButton.ButtonState
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Field Summary
 
Fields inherited from class org.xith3d.ui.hud.base.AbstractButton
buttonState, isStateChangable
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetBase
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER
 
Constructor Summary
Button(float width, float height)
          Creates a new Button.
Button(float width, float height, Button.Description desc)
          Creates a new Button.
Button(float width, float height, int zIndex)
          Creates a new Button.
Button(float width, float height, int zIndex, Button.Description desc)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, Button.Description desc)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, java.awt.Font font)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, java.lang.String normalBackground, java.lang.String hoveredBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, Texture normalBackground, Texture hoveredBackground, Texture pressedBackground)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(float width, float height, int zIndex, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(float width, float height, int zIndex, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(float width, float height, java.lang.String text)
          Creates a new Button.
Button(float width, float height, java.lang.String text, Button.Description desc)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(float width, float height, java.lang.String text, java.awt.Font font, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(float width, float height, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button with a z-index of 0.
Button(float width, float height, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button with a z-index of 0.
Button(float width, float height, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button with a z-index of 0.
Button(float width, float height, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button with a z-index of 0.
Button(org.openmali.types.twodee.Sized2fRO size)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, Button.Description desc)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, Button.Description desc)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, Button.Description desc)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, java.lang.String normalBackground, java.lang.String hoveredBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, Texture normalBackground, Texture hoveredBackground, Texture pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, int zIndex, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, Button.Description desc)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button with a z-index of 0.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Creates a new Button with a z-index of 0.
Button(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button with a z-index of 0.
Button(org.openmali.types.twodee.Sized2fRO size, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Creates a new Button with a z-index of 0.
 
Method Summary
static void bindAccessor(org.jagatoo.input.devices.components.DeviceComponent comp)
          Binds a DeviceComponent to ALL Buttons, that works as an accessor.
protected  TextWidget createCaptionWidget(java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
           
protected  TextWidget createCaptionWidget(java.lang.String text, Label.Description labelDesc)
           
protected static Button.Description deriveDesc(java.awt.Font font, org.openmali.vecmath2.Colorf color)
           
 TextAlignment getAlignment()
           
 java.awt.Font getFont()
           
 org.openmali.vecmath2.Colorf getFontColor()
           
 java.lang.String getText()
           
 float getTransparency()
          
protected  void init()
          This method is called when the WidgetContainer is set.
static boolean isDefaultFocusResponsive()
           
 boolean isFocusResponsive()
           
 void onFocusGained()
          This event is fired, when the focus is gained to a Widget.
 void onFocusLost()
          This event is fired, when the focus is lost by a Widget.
 void onInputStateChanged(org.jagatoo.input.devices.components.DeviceComponent comp, int delta, int state, boolean isTopMost, boolean hasFocus)
          This event is fired when the state of any DeviceComponent has changed.
 void onMouseButtonPressed(org.jagatoo.input.devices.components.MouseButton button, int x, int y, long when, long lastWhen, boolean isTopMost, boolean hasFocus)
          This event is fired, when a mouse button is pressed on a focused Widget.
 void onMouseButtonReleased(org.jagatoo.input.devices.components.MouseButton button, int x, int y, long when, long lastWhen, boolean isTopMost, boolean hasFocus)
          This event is fired, when a mouse button is released on a focused Widget.
 void onMouseEntered(boolean isTopMost, boolean hasFocus)
          This method is called when the mouse entered the Widget area
 void onMouseLeft(boolean isTopMost, boolean hasFocus)
          This method is called when the mouse left the Widget area
 void setAlignment(TextAlignment align)
          Sets the text alignment of the Button's text.
static void setDefaultFocusResponsive(boolean resp)
          Sets whether the Button Widget is focus-responsive by default.
protected  void setEnabledImpl(boolean enabled)
          
 void setFocusResponsive(boolean resp)
          Sets whether this Button Widget is focus-responsive.
 void setFont(java.awt.Font font)
          Sets the Font of the Button's text.
 void setFontColor(org.openmali.vecmath2.Colorf color)
          Sets the font-color of the Button's text.
 void setHoveredBackground(java.lang.String resource)
          Sets the Texture by resource to be used for HOVERED ButtonState.
 void setHoveredBackground(Texture texture)
          Sets the Texture to be used for HOVERED ButtonState.
 void setNormalBackground(java.lang.String resource)
          Sets the Texture by resource to be used for NORMAL ButtonState.
 void setNormalBackground(Texture texture)
          Sets the Texture to be used for NORMAL ButtonState.
 void setPressedBackground(java.lang.String resource)
          Sets the Texture by resource to be used for PRESSED ButtonState.
 void setPressedBackground(Texture texture)
          Sets the Texture to be used for PRESSED ButtonState.
protected  boolean setSize(float width, float height, boolean forced)
          
 void setText(java.lang.String text)
          Sets this Button's text content.
 void setTransparency(float transparency)
          Sets the whole Widget's Transparency.
static void unbindAccessor(org.jagatoo.input.devices.components.DeviceComponent comp)
          Unbinds a DeviceComponent from ALL Buttons.
 void update()
          Updates the Button's images.
 
Methods inherited from class org.xith3d.ui.hud.base.AbstractButton
addButtonListener, fireButtonClickedEvent, getButtonState, isEnabled, removeButtonListener, setEnabled
 
Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget
getPickHeight, getPickSGZPosition, getPickWidth, pick
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetBase
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getUserObject, getWidgetAssembler, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isInitialized, isInitializing, isPickable, isVisible, onAddedToContainer, onAddedToHUD, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onKeyPressed, onKeyReleased, onKeyTyped, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, onRemovedFromContainer, pickWidgetAssembler, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setHeight, setLocation, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setUserObject, setVisible, setWidth, setZIndex, toString, updateTranslation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xith3d.ui.hud.base.Widget
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getUserObject, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isPickable, isVisible, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onKeyPressed, onKeyReleased, onKeyTyped, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, pick, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setUserObject, setVisible, setZIndex
 
Methods inherited from interface org.openmali.types.twodee.Sized2f
setHeight, setWidth
 

Constructor Detail

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text,
              Button.Description desc)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
desc - Button.Description

Button

public Button(float width,
              float height,
              java.lang.String text,
              Button.Description desc)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
desc - Button.Description

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              Button.Description desc)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
desc - Button.Description

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              Button.Description desc)
Creates a new Button.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
desc - Button.Description

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              Button.Description desc)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
desc - Button.Description

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              Button.Description desc)
Creates a new Button.

Parameters:
size - the new size of this Widget
desc - Button.Description

Button

public Button(float width,
              float height,
              int zIndex,
              Button.Description desc)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
desc - Button.Description

Button

public Button(float width,
              float height,
              Button.Description desc)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
desc - Button.Description

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              Texture normalBackground,
              Texture hoveredBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
hoveredBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              Texture normalBackground,
              Texture hoveredBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
hoveredBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              java.lang.String normalBackground,
              java.lang.String hoveredBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
hoveredBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              java.lang.String normalBackground,
              java.lang.String hoveredBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
hoveredBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              java.awt.Font font,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
font - the font to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              java.awt.Font font,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
font - the font to use
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
font - the font to use
color - the color to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              java.awt.Font font,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
font - the font to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              java.awt.Font font,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
font - the font to use
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed nor hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              int zIndex,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
size - the new size of this Widget
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
size - the new size of this Widget
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              java.lang.String normalBackground,
              java.lang.String rolloverBackground,
              java.lang.String pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
normalBackground - the texture name to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture name to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture name to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
size - the new size of this Widget
text - the text to display on the Button
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(float width,
              float height,
              java.lang.String text,
              Texture normalBackground,
              Texture rolloverBackground,
              Texture pressedBackground)
Creates a new Button with a z-index of 0.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the text to display on the Button
normalBackground - the texture resource to use as background image for this ImageButton when it's not pressed or hovered.
rolloverBackground - the texture resource to use as background image for this ImageButton when it's hovered and not pressed.
pressedBackground - the texture resource to use as background image for this ImageButton when it's pressed.

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text)
Creates a new Button.

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button

Button

public Button(float width,
              float height,
              int zIndex,
              java.lang.String text)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
zIndex - the new z-index of this Widget
text - the text to display on the Button

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              java.lang.String text)
Creates a new Button.

Parameters:
size - the new size of this Widget
text -

Button

public Button(float width,
              float height,
              java.lang.String text)
Creates a new Button.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text -

Button

public Button(org.openmali.types.twodee.Sized2fRO size,
              int zIndex,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color)
Creates a new Button.

Parameters:
size - the new size of this