|
||||||||||
| 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.widgets.NumberLabel
public class NumberLabel
A NumberLabel displays floating-point-numbers, that may change very dynamically.
Label,
DynamicLabel| Nested Class Summary | |
|---|---|
static class |
NumberLabel.Description
This class is used to describe a (set of) Label Widget(s). |
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary | |
|---|---|
protected boolean |
autoSize
|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength)
Creates a new Label with the given width and height and no text initially. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength)
Creates a new Label with the given width and height and no text initially. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength)
Creates a new Label with the given width and height and no text initially. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
Creates a new Label with the given width, height and z-index. |
|
NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
Creates a new Label with the given width and height and a z-index of 0. |
|
| Method Summary | |
|---|---|
protected void |
fixTranslation(org.openmali.vecmath2.Tuple2f offset)
|
TextAlignment |
getAlignment()
|
Texture |
getBackground()
|
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
float |
getBackgroundTileHeight()
|
org.openmali.types.twodee.Sized2fRO |
getBackgroundTileSize()
|
float |
getBackgroundTileWidth()
|
GroupNode |
getContentGroup()
|
java.awt.Font |
getFont()
|
org.openmali.vecmath2.Colorf |
getFontColor()
|
org.openmali.vecmath2.Colorf |
getFontColorDisabled()
|
java.awt.Font |
getFontDisabled()
|
org.openmali.types.twodee.Dim2f |
getMinimalSize(org.openmali.types.twodee.Dim2f buffer)
Calculates the minimum Size needed to contain the whole caption. |
NumberGeom |
getNumberGeom()
|
int |
getNumFractions()
|
float |
getPaddingBottom()
|
float |
getPaddingLeft()
|
float |
getPaddingRight()
|
float |
getPaddingTop()
|
float |
getTransparency()
|
float |
getValue()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
boolean |
isAutoSizeEnabled()
|
boolean |
isEnabled()
|
void |
setAlignment(TextAlignment alignment)
Sets the horizontal and vertical alignment of the text |
void |
setAutoSizeEnabled(boolean enabled)
Enables or disables auto-sizing. |
void |
setBackground(org.openmali.vecmath2.Colorf color)
Sets the background color of the Widget. |
void |
setBackground(java.lang.String texture)
Sets the background Texture of the Widget. |
void |
setBackground(Texture texture)
Sets the background texture of the Widget. |
void |
setBackgroundTileSize(float tileWidth,
float tileHeight)
Sets the background tile size. |
void |
setBackgroundTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
Sets the background tile size. |
void |
setContainer(WidgetContainer container)
Sets this Widget's container |
void |
setEnabled(boolean enabled)
|
void |
setEnabledImpl(boolean enabled)
|
void |
setFont(java.awt.Font font)
|
void |
setFontColor(org.openmali.vecmath2.Colorf color)
|
void |
setFontColorDisabled(org.openmali.vecmath2.Colorf color)
|
void |
setFontDisabled(java.awt.Font font)
|
void |
setMinimalSize()
Resizes this Label to the minimum Size needed to contain the whole caption. |
void |
setNumFractions(int numFractions)
|
boolean |
setPadding(float padding)
Sets padding for this PaddingSettable Widget. |
boolean |
setPadding(float paddingBottom,
float paddingRight,
float paddingTop,
float paddingLeft)
Sets padding for this PaddingSettable Widget. |
boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTransparency(float transparency)
Sets the whole Widget's Transparency. |
void |
setValue(float value)
|
java.lang.String |
toString()
|
protected void |
updateNumber()
|
protected void |
updateTranslation()
Effectively changes the translation of this Widget (location and z-index) |
| 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 |
| Field Detail |
|---|
protected boolean autoSize
| Constructor Detail |
|---|
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)labelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)labelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)labelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
NumberLabel.Description labelDesc)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)labelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)alignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)alignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)alignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)alignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be used
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be used
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be used
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textcolor - the color to be used
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
size - the new size of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be used
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be used
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be used
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)color - the color to be used
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the text
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the text
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
TextAlignment alignment)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textalignment - the horizontal and vertical alignment
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength,
java.awt.Font font,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)font - the Font to be used for the textalignment - the horizontal and vertical alignment
public NumberLabel(org.openmali.types.twodee.Sized2fRO size,
float value,
char decimalChar,
int maxLength)
size - the new size of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)
public NumberLabel(float width,
float height,
int zIndex,
float value,
char decimalChar,
int maxLength)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)
public NumberLabel(float width,
float height,
float value,
char decimalChar,
int maxLength)
width - the new width of this Widgetheight - the new height of this Widgetvalue - the value to display in this NumberWidgetdecimalChar - the character to use as decimal delimitermaxLength - the maximum number of digits (inclusive sign, decimal-delim and fractions)| Method Detail |
|---|
public GroupNode getContentGroup()
public void setTransparency(float transparency)
setTransparency in interface WidgetsetTransparency in class WidgetBasepublic float getTransparency()
getTransparency in interface Widgetpublic void setBackground(org.openmali.vecmath2.Colorf color)
setBackground in interface BackgroundSettablecolor - the color to usepublic void setBackground(java.lang.String texture)
setBackground in interface BackgroundSettabletexture - the texture resource to usepublic void setBackground(Texture texture)
setBackground in interface BackgroundSettabletexture - the texture resource to usepublic Texture getBackground()
getBackground in interface BackgroundSettablepublic org.openmali.vecmath2.Colorf getBackgroundColor()
getBackgroundColor in interface BackgroundSettable
public void setBackgroundTileSize(float tileWidth,
float tileHeight)
setBackgroundTileSize in interface BackgroundSettabletileWidth - the tile width (or negative for no tiling of width)tileHeight - the tile height (or negative for no tiling of height)public void setBackgroundTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
setBackgroundTileSize in interface BackgroundSettabletileSize - the tile size (or null for no tiling)public org.openmali.types.twodee.Sized2fRO getBackgroundTileSize()
getBackgroundTileSize in interface BackgroundSettablepublic float getBackgroundTileWidth()
getBackgroundTileWidth in interface BackgroundSettablepublic float getBackgroundTileHeight()
getBackgroundTileHeight in interface BackgroundSettable
public boolean setPadding(float paddingBottom,
float paddingRight,
float paddingTop,
float paddingLeft)
setPadding in interface PaddingSettablepublic final boolean setPadding(float padding)
setPadding in interface PaddingSettablepadding - padding for bottom, right, top and left
public float getPaddingBottom()
getPaddingBottom in interface PaddingSettablepublic float getPaddingRight()
getPaddingRight in interface PaddingSettablepublic float getPaddingTop()
getPaddingTop in interface PaddingSettablepublic float getPaddingLeft()
getPaddingLeft in interface PaddingSettablepublic void setAutoSizeEnabled(boolean enabled)
enabled - public boolean isAutoSizeEnabled()
public NumberGeom getNumberGeom()
protected void updateNumber()
public void setValue(float value)
public float getValue()
public void setNumFractions(int numFractions)
public final int getNumFractions()
public void setAlignment(TextAlignment alignment)
public TextAlignment getAlignment()
public void setFont(java.awt.Font font)
public java.awt.Font getFont()
public void setFontDisabled(java.awt.Font font)
public java.awt.Font getFontDisabled()
public void setFontColor(org.openmali.vecmath2.Colorf color)
public org.openmali.vecmath2.Colorf getFontColor()
public void setFontColorDisabled(org.openmali.vecmath2.Colorf color)
public org.openmali.vecmath2.Colorf getFontColorDisabled()
public void setEnabledImpl(boolean enabled)
public final void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.Enableablepublic final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableable
public boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBasepublic org.openmali.types.twodee.Dim2f getMinimalSize(org.openmali.types.twodee.Dim2f buffer)
public void setMinimalSize()
protected void fixTranslation(org.openmali.vecmath2.Tuple2f offset)
protected void updateTranslation()
updateTranslation in class WidgetBase