|
||||||||||
| 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()
Creates a new Label.Description. |
|
Label.Description(org.openmali.vecmath2.Colorf color)
Creates a new Label.Description. |
|
Label.Description(org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label.Description. |
|
Label.Description(java.awt.Font font)
Creates a new Label.Description. |
|
Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new Label.Description. |
|
Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
Creates a new Label.Description. |
|
Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment,
Texture bgTex)
Creates a new Label.Description. |
|
Label.Description(java.awt.Font font,
TextAlignment alignment)
Creates a new Label.Description. |
|
Label.Description(Label.Description desc)
Clon-Constructor |
|
Label.Description(TextAlignment alignment)
Creates a new Label.Description. |
|
| Method Summary | |
|---|---|
Label.Description |
clone()
|
static java.awt.Font |
deriveDisabledFont(java.awt.Font enabledFont)
|
TextAlignment |
getAlignment()
|
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
Texture |
getBackgroundTexture()
|
java.awt.Font |
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(Texture texture)
Sets the background texture of this label |
void |
setFont(java.awt.Font 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 |
|---|
public Label.Description(Label.Description desc)
desc - the original to clone
public Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment,
Texture bgTex)
font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignmentbgTex - the background texture
public Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
font - the Font to be used for the textcolor - the color to be usedalignment - the horizontal and vertical alignmentpublic Label.Description(TextAlignment alignment)
alignment - the horizontal and vertical alignment
public Label.Description(org.openmali.vecmath2.Colorf color,
TextAlignment alignment)
color - the color to be usedalignment - the horizontal and vertical alignment
public Label.Description(java.awt.Font font,
org.openmali.vecmath2.Colorf color)
font - the Font to be used for the textcolor - the color to be usedpublic Label.Description(org.openmali.vecmath2.Colorf color)
color - the color to be usedpublic Label.Description(java.awt.Font font)
font - the Font to be used for the text
public Label.Description(java.awt.Font font,
TextAlignment alignment)
font - the Font to be used for the textalignment - the horizontal and vertical alignmentpublic Label.Description()
disabled - | Method Detail |
|---|
public Texture getBackgroundTexture()
public void setBackgroundTexture(Texture texture)
texture - the texture to usepublic void setBackgroundTexture(java.lang.String texture)
texture - the texture resource to usepublic org.openmali.vecmath2.Colorf getBackgroundColor()
public void setBackgroundColor(org.openmali.vecmath2.Colorf color)
color - the color to usepublic void setAlignment(TextAlignment alignment)
public TextAlignment getAlignment()
public void setFont(java.awt.Font font,
boolean disabled)
font - the new Fontdisabled - public java.awt.Font 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 java.awt.Font deriveDisabledFont(java.awt.Font 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 | |||||||||