|
||||||||||
| 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
public class Button
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 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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(org.openmali.types.twodee.Sized2fRO size,
Button.Description desc)
size - the new size of this Widgetdesc - Button.Description
public Button(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 Button(float width,
float height,
Button.Description desc)
width - the new width of this Widgetheight - the new height of this Widgetdesc - Button.Description
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)
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 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)
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 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)
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 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)
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 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)
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 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)
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 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)
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 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)
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 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)
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 Button(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 Button(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 Button(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 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)
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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(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 Button(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text)
size - the new size of this Widgettext -
public Button(float width,
float height,
java.lang.String text)
width - the new width of this Widgetheight - the new height of this Widgettext -
public Button(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