|
||||||||||
| 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.Label
org.xith3d.ui.hud.widgets.DynamicLabel
public class DynamicLabel
A DynamicLabel is optimized to display highly dynamic text content on your HUD. Please compare the performance with a regular Label for your situation.
Label,
NumberLabel| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
Label.Description |
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
autoSize |
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
DynamicLabel(float width,
float height)
Creates a new DynamicLabel with the given width and height and no text initially. |
|
DynamicLabel(float width,
float height,
int zIndex)
Creates a new DynamicLabel with the given width, height and z-index and no text initially. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text)
Creates a new DynamicLabel with the given width and height and no text initially. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
Label.Description labelDesc)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text)
Creates a new DynamicLabel with the given width and height and no text initially. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
Label.Description labelDesc)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(float width,
float height,
java.lang.String text,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size)
Creates a new DynamicLabel with the given width and height and no text initially. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
Creates a new DynamicLabel with the given width, height and z-index and no text initially. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
Label.Description labelDesc)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text)
Creates a new DynamicLabel with the given width and height and no text initially. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
Label.Description labelDesc)
Creates a new DynamicLabel with the given width, height and z-index. |
|
DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
TextAlignment alignment)
Creates a new DynamicLabel with the given width and height and a z-index of 0. |
|
| Method Summary | |
|---|---|
protected void |
fixTranslation(org.openmali.vecmath2.Tuple2f offset)
|
Text2D |
getTextNode()
|
Rectangle |
getTextRectangle()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setMinimalSize()
Resizes this Label to the minimum Size needed to contain the whole caption. |
boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTransparency(float transparency)
Sets the whole Widget's Transparency. |
protected void |
updateText()
|
| 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 DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
Label.Description labelDesc)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetlabelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public DynamicLabel(float width,
float height,
java.lang.String text,
Label.Description labelDesc)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetlabelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
Label.Description labelDesc)
size - the new size of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetlabelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
Label.Description labelDesc)
size - the new size of this Widgettext - the text to display in this TextWidgetlabelDesc - a LabelDescription instance holding information about font, color, alignment and background-texture
public DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
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 Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
TextAlignment alignment)
size - the new size of this Widgettext - the text to display in this TextWidgetalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
java.lang.String text,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
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 Widgettext - the text to display in this TextWidgetcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this Widgettext - the text to display in this TextWidgetcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
size - the new size of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignment
public DynamicLabel(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 WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be used
public DynamicLabel(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 WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be used
public DynamicLabel(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 text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be used
public DynamicLabel(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 text to display in this TextWidgetfont - the Font to be used for the textcolor - the color to be used
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
size - the new size of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetcolor - the color to be used
public DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidgetcolor - the color to be used
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgettext - the text to display in this TextWidgetcolor - the color to be used
public DynamicLabel(float width,
float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetcolor - the color to be used
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font)
size - the new size of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the text
public DynamicLabel(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 text to display in this TextWidgetfont - the Font to be used for the text
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text,
java.awt.Font font,
TextAlignment alignment)
size - the new size of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textalignment - the horizontal and vertical alignment
public DynamicLabel(float width,
float height,
java.lang.String text,
java.awt.Font font,
TextAlignment alignment)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidgetfont - the Font to be used for the textalignment - the horizontal and vertical alignment
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
size - the new size of this WidgetzIndex - the z-index of this Widget
public DynamicLabel(float width,
float height,
int zIndex)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgetpublic DynamicLabel(org.openmali.types.twodee.Sized2fRO size)
size - the new size of this Widget
public DynamicLabel(float width,
float height)
width - the new width of this Widgetheight - the new height of this Widget
public DynamicLabel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String text)
size - the new size of this Widgettext - the text to display in this TextWidget
public DynamicLabel(float width,
float height,
int zIndex,
java.lang.String text)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widgettext - the text to display in this TextWidget
public DynamicLabel(float width,
float height,
java.lang.String text)
width - the new width of this Widgetheight - the new height of this Widgettext - the text to display in this TextWidget| Method Detail |
|---|
public void setTransparency(float transparency)
setTransparency in interface WidgetsetTransparency in class Labelpublic float getTransparency()
getTransparency in interface WidgetgetTransparency in class Labelpublic Rectangle getTextRectangle()
getTextRectangle in class Labelpublic Text2D getTextNode()
protected void updateText()
updateText in class Labelpublic void setMinimalSize()
setMinimalSize in class Label
public boolean setSize(float width,
float height,
boolean forced)
setSize in class Labelprotected void fixTranslation(org.openmali.vecmath2.Tuple2f offset)
fixTranslation in class Labelprotected void init()
init in class Label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||