org.xith3d.ui.hud.base
Interface TextWidget

All Superinterfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.types.twodee.Positioned2f, org.openmali.types.twodee.Positioned2fRO, org.openmali.types.twodee.Sized2f, org.openmali.types.twodee.Sized2fRO, Widget
All Known Subinterfaces:
AdvancedTextWidget
All Known Implementing Classes:
Button, Checkbox, ComboBox, DefaultContextMenuItem, DynamicLabel, FPSCounter, Label, LabeledStateButton, RadioButton, TextField, ToggleButton, WindowHeaderWidget

public interface TextWidget
extends Widget

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Method Summary
 TextAlignment getAlignment()
           
 java.awt.Font 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(java.awt.Font 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
 
Methods inherited from interface org.xith3d.ui.hud.base.Widget
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getTransparency, getUserObject, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isPickable, isVisible, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseLeft, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, pick, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setVisible, setZIndex, update
 
Methods inherited from interface org.openmali.types.twodee.Sized2f
setHeight, setWidth
 

Method Detail

getText

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

setText

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

Parameters:
text - the new Text

getFontColor

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

setFontColor

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

Parameters:
color - the new color

getFont

java.awt.Font getFont()
Returns:
the used Font

setFont

void setFont(java.awt.Font font)
Sets the new Font to be used

Parameters:
font - the new 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