|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.WidgetBase
org.xith3d.ui.hud.base.RectangularWidget
org.xith3d.ui.hud.base.AbstractButton
org.xith3d.ui.hud.widgets.Button
org.xith3d.ui.hud.widgets.ToggleButton
public class ToggleButton
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Constructor Detail |
|---|
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text,
Button.Description desc)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttondesc - Button.Description
public ToggleButton(float width,
float height,
java.lang.String text,
Button.Description desc)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the Buttondesc - Button.Description
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
Button.Description desc)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttondesc - Button.Description
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
Button.Description desc)
size - the new size of this Widgettext - the text to display on the Buttondesc - Button.Description
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Button.Description desc)
size - the new size of this WidgetzIndex - the new z-index of this Widgetdesc - Button.Description
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
Button.Description desc)
size - the new size of this Widgetdesc - Button.Description
public ToggleButton(float width,
float height,
int zIndex,
Button.Description desc)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgetdesc - Button.Description
public ToggleButton(float width,
float height,
Button.Description desc)
width - the new width of this Widgetheight - the new height of this Widgetdesc - Button.Description of the NORMAL state
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)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
size - the new size of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
size - the new size of this Widgettext - the text to display on the Buttonfont - the font to usenormalBackground - 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.
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)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the Buttonfont - the font to usenormalBackground - 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.
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)
size - the new size of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
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)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the Buttonfont - the font to usecolor - the color to usenormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
size - the new size of this Widgettext - the text to display on the Buttonfont - the font to usenormalBackground - 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.
public ToggleButton(float width,
float height,
java.lang.String text,
java.awt.Font font,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the Buttonfont - the font to usenormalBackground - 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.
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)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
size - the new size of this WidgetzIndex - the new z-index of this WidgetnormalBackground - 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.
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this WidgetnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
size - the new size of this WidgetzIndex - the new z-index of this WidgetnormalBackground - 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.
public ToggleButton(float width,
float height,
int zIndex,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this WidgetnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
size - the new size of this WidgetnormalBackground - 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.
public ToggleButton(float width,
float height,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
size - the new size of this WidgetnormalBackground - 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.
public ToggleButton(float width,
float height,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
width - the new width of this Widgetheight - the new height of this WidgetnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
size - the new size of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(float width,
float height,
java.lang.String text,
java.lang.String normalBackground,
java.lang.String rolloverBackground,
java.lang.String pressedBackground)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
size - the new size of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(float width,
float height,
java.lang.String text,
Texture normalBackground,
Texture rolloverBackground,
Texture pressedBackground)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display on the ButtonnormalBackground - 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.
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text)
size - the new size of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Button
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettext - the text to display on the Button
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text)
size - the new size of this Widgettext -
public ToggleButton(float width,
float height,
java.lang.String text)
width - the new width of this Widgetheight - the new height of this Widgettext -
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgettext - the new textfont - the font to usecolor - the color to use
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgettext - the new textfont - the font to usecolor - the color to use
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
java.awt.Font font)
size - the new size of this Widgettext - the new textfont - the font to use
public ToggleButton(float width,
float height,
int zIndex,
java.lang.String text,
java.awt.Font font)
width - the new width of this Widgetheight - the new height of this Widgettext - the new textfont - the font to use
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgettext - the new textfont - the font to usecolor - the color to use
public ToggleButton(float width,
float height,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgettext - the new textfont - the font to usecolor - the color to use
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font)
size - the new size of this Widgettext - the new textfont - the font to use
public ToggleButton(float width,
float height,
java.lang.String text,
java.awt.Font font)
width - the new width of this Widgetheight - the new height of this Widgettext - the new textfont - the font to use
public ToggleButton(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
size - the new size of this WidgetzIndex - the new z-index of this Widgetpublic ToggleButton(org.openmali.types.twodee.Sized2fRO size)