|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget.DescriptionBase
org.xith3d.ui.hud.widgets.Label.Description
public static class Label.Description
This class is used to describe a (set of) Label Widget(s). You can pass it to the Label constructor. Modifications on the used instance after creating the Label Widget won't have any effect.
| Constructor Summary | |
|---|---|
|
Label.Description(org.openmali.vecmath2.Colorf backgroundColor,
java.lang.String backgroundTexture,
HUDFont font_enabled,
HUDFont font_disabled,
org.openmali.vecmath2.Colorf color_enabled,
org.openmali.vecmath2.Colorf color_disabled,
TextAlignment alignment)
Creates a new Label.Description. |
|
Label.Description(org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
HUDFont font_enabled,
HUDFont font_disabled,
org.openmali.vecmath2.Colorf color_enabled,
org.openmali.vecmath2.Colorf color_disabled,
TextAlignment alignment)
Creates a new Label.Description. |
protected |
Label.Description(Label.Description desc)
Clon-Constructor |
| Method Summary | |
|---|---|
Label.Description |
clone()
|
static HUDFont |
deriveDisabledFont(HUDFont enabledFont)
|
TextAlignment |
getAlignment()
|
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
Texture2D |
getBackgroundTexture()
|
HUDFont |
getFont(boolean disabled)
|
org.openmali.vecmath2.Colorf |
getFontColor(boolean disabled)
|
void |
set(Label.Description desc)
Clon-Constructor |
void |
setAlignment(TextAlignment alignment)
Sets the horizontal and vertical alignment of the text |
void |
setBackgroundColor(org.openmali.vecmath2.Colorf color)
Sets the background color of this label |
void |
setBackgroundTexture(java.lang.String texture)
Sets the background texture of this label |
void |
setBackgroundTexture(Texture2D texture)
Sets the background texture of this label |
void |
setFont(HUDFont font,
boolean disabled)
Sets the new Font to be used |
void |
setFontColor(org.openmali.vecmath2.Colorf color,
boolean disabled)
Sets the new color to be used |
| Methods inherited from class org.xith3d.ui.hud.base.Widget.DescriptionBase |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Label.Description(Label.Description desc)
desc - the original to clone
public Label.Description(org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTexture,
HUDFont font_enabled,
HUDFont font_disabled,
org.openmali.vecmath2.Colorf color_enabled,
org.openmali.vecmath2.Colorf color_disabled,
TextAlignment alignment)
backgroundColor - backgroundTexture - the background texturefont_enabled - the Font to be used for the textfont_disabled - the Font to be used for the textcolor_enabled - the color to be usedcolor_disabled - the color to be usedalignment - the horizontal and vertical alignment
public Label.Description(org.openmali.vecmath2.Colorf backgroundColor,
java.lang.String backgroundTexture,
HUDFont font_enabled,
HUDFont font_disabled,
org.openmali.vecmath2.Colorf color_enabled,
org.openmali.vecmath2.Colorf color_disabled,
TextAlignment alignment)
backgroundColor - backgroundTexture - the background texturefont_enabled - the Font to be used for the textfont_disabled - the Font to be used for the textcolor_enabled - the color to be usedcolor_disabled - the color to be usedalignment - the horizontal and vertical alignment| Method Detail |
|---|
public final Texture2D getBackgroundTexture()
public void setBackgroundTexture(Texture2D texture)
texture - the texture to usepublic void setBackgroundColor(org.openmali.vecmath2.Colorf color)
color - the color to usepublic org.openmali.vecmath2.Colorf getBackgroundColor()
public void setBackgroundTexture(java.lang.String texture)
texture - the texture resource to usepublic void setAlignment(TextAlignment alignment)
public TextAlignment getAlignment()
public void setFont(HUDFont font,
boolean disabled)
font - the new Fontdisabled - public HUDFont getFont(boolean disabled)
public void setFontColor(org.openmali.vecmath2.Colorf color,
boolean disabled)
color - the new colordisabled - public org.openmali.vecmath2.Colorf getFontColor(boolean disabled)
public static HUDFont deriveDisabledFont(HUDFont enabledFont)
public void set(Label.Description desc)
desc - the original to clonepublic Label.Description clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||