org.xith3d.ui.hud.base
Interface TextWidget

All Known Implementing Classes:
Button, Checkbox, ComboBox, DefaultContextMenuItem, FPSCounter, Label, LabeledStateButton, RadioButton, TextField, ToggleButton, WindowHeaderWidget

public interface TextWidget

A TextWidget is a Widget type, that can hold a text.


Method Summary
 TextAlignment getAlignment()
           
 HUDFont getFont()
           
 org.openmali.vecmath2.Colorf getFontColor()
           
 java.lang.String getText()
           
 void setAlignment(TextAlignment alignment)
          Sets the horizontal and vertical alignment of the text
 void setFont(HUDFont font)
          Sets the new Font to be used
 void setFontColor(org.openmali.vecmath2.Colorf color)
          Sets the new color to be used
 void setText(java.lang.String text)
          Sets the new text to be displayed
 

Method Detail

setText

void setText(java.lang.String text)
Sets the new text to be displayed

Parameters:
text - the new Text

getText

java.lang.String getText()
Returns:
the text that is displayed

setFontColor

void setFontColor(org.openmali.vecmath2.Colorf color)
Sets the new color to be used

Parameters:
color - the new color

getFontColor

org.openmali.vecmath2.Colorf getFontColor()
Returns:
the used color

setFont

void setFont(HUDFont font)
Sets the new Font to be used

Parameters:
font - the new Font

getFont

HUDFont getFont()
Returns:
the used Font

setAlignment

void setAlignment(TextAlignment alignment)
Sets the horizontal and vertical alignment of the text


getAlignment

TextAlignment getAlignment()
Returns:
the horizontal and vertical alignment of the text