org.xith3d.ui.hud.widgets
Class ToggleButton

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
                  extended by org.xith3d.ui.hud.widgets.ToggleButton
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

public class ToggleButton
extends Button

A ToggleButton is a Button, that stays PRESSED until it gets clicked again.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.Button
Button.Description
 
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
ToggleButton(float width, float height)
          Creates a new ToggleButton.
ToggleButton(float width, float height, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex)
          Creates a new ToggleButton.
ToggleButton(float width, float height, int zIndex, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text, java.awt.Font font)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, int zIndex, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, java.awt.Font font)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, java.awt.Font font, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String text, java.awt.Font font, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(float width, float height, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(float width, float height, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(float width, float height, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(float width, float height, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(org.openmali.types.twodee.Sized2fRO size)
          Creates a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex)
          Creates a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, int zIndex, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, Button.Description desc)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(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)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.awt.Font font, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, java.lang.String normalBackground, java.lang.String rolloverBackground, java.lang.String pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, java.lang.String text, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton with a z-index of 0.
ToggleButton(org.openmali.types.twodee.Sized2fRO size, Texture normalBackground, Texture rolloverBackground, Texture pressedBackground)
          Create a new ToggleButton with a z-index of 0.
 
Method Summary
 boolean isToggled()
           
 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 setToggled(boolean toggled)
          Sets if the ToggleButton is currently toggled.
 
Methods inherited from class org.xith3d.ui.hud.widgets.Button
bindAccessor, createCaptionWidget, createCaptionWidget, deriveDesc, getAlignment, getFont, getFontColor, getText, getTransparency, init, isDefaultFocusResponsive, isFocusResponsive, onFocusGained, onFocusLost, onInputStateChanged, setAlignment, setDefaultFocusResponsive, setEnabledImpl, setFocusResponsive, setFont, setFontColor, setHoveredBackground, setHoveredBackground, setNormalBackground, setNormalBackground, setPressedBackground, setPressedBackground, setSize, setText, setTransparency, unbindAccessor, update
 
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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

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

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.

ToggleButton

public ToggleButton(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)
Create a new ToggleButton.

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

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

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.

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    java.lang.String normalBackground,
                    java.lang.String rolloverBackground,
                    java.lang.String pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String normalBackground,
                    java.lang.String rolloverBackground,
                    java.lang.String pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    Texture normalBackground,
                    Texture rolloverBackground,
                    Texture pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(float width,
                    float height,
                    Texture normalBackground,
                    Texture rolloverBackground,
                    Texture pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    java.lang.String text,
                    java.lang.String normalBackground,
                    java.lang.String rolloverBackground,
                    java.lang.String pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String text,
                    java.lang.String normalBackground,
                    java.lang.String rolloverBackground,
                    java.lang.String pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    java.lang.String text,
                    Texture normalBackground,
                    Texture rolloverBackground,
                    Texture pressedBackground)
Create a new ToggleButton 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.

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String text,
                    Texture normalBackground,
                    Texture rolloverBackground,
                    Texture pressedBackground)
Create a new ToggleButton 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.

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

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

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

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String text)
Create a new ToggleButton.

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

ToggleButton

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

Parameters:
size - the new size of this Widget
text - the new text
font - the font to use
color - the color to use

ToggleButton

public ToggleButton(float width,
                    float height,
                    int zIndex,
                    java.lang.String text,
                    java.awt.Font font,
                    org.openmali.vecmath2.Colorf color)
Create a new ToggleButton.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the new text
font - the font to use
color - the color to use

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    int zIndex,
                    java.lang.String text,
                    java.awt.Font font)
Create a new ToggleButton.

Parameters:
size - the new size of this Widget
text - the new text
font - the font to use

ToggleButton

public ToggleButton(float width,
                    float height,
                    int zIndex,
                    java.lang.String text,
                    java.awt.Font font)
Create a new ToggleButton.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the new text
font - the font to use

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    java.lang.String text,
                    java.awt.Font font,
                    org.openmali.vecmath2.Colorf color)
Create a new ToggleButton.

Parameters:
size - the new size of this Widget
text - the new text
font - the font to use
color - the color to use

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String text,
                    java.awt.Font font,
                    org.openmali.vecmath2.Colorf color)
Create a new ToggleButton.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the new text
font - the font to use
color - the color to use

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
                    java.lang.String text,
                    java.awt.Font font)
Create a new ToggleButton.

Parameters:
size - the new size of this Widget
text - the new text
font - the font to use

ToggleButton

public ToggleButton(float width,
                    float height,
                    java.lang.String text,
                    java.awt.Font font)
Create a new ToggleButton.

Parameters:
width - the new width of this Widget
height - the new height of this Widget
text - the new text
font - the font to use

ToggleButton

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

Parameters:
size - the new size of this Widget
zIndex - the new z-index of this Widget

ToggleButton

public ToggleButton(org.openmali.types.twodee.Sized2fRO size)
Creates a new ToggleButton.

Parameters: