|
||||||||||
| 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.List<Label>
org.xith3d.ui.hud.widgets.TextList
public class TextList
This is a very simple List-Widget extension, that forces the List to take
Labels as items.
It is simply an alias for "List<Label>".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.List |
|---|
List.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.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
TextList(float width,
float height)
Creates a new List Widget. |
|
TextList(float width,
float height,
int zIndex)
Creates a new List Widget. |
|
TextList(float width,
float height,
int zIndex,
List.Description listDesc)
Creates a new List Widget. |
|
TextList(float width,
float height,
List.Description listDesc)
Creates a new List Widget. |
|
TextList(org.openmali.types.twodee.Sized2fRO size)
Creates a new List Widget. |
|
TextList(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
Creates a new List Widget. |
|
TextList(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
List.Description listDesc)
Creates a new List Widget. |
|
TextList(org.openmali.types.twodee.Sized2fRO size,
List.Description listDesc)
Creates a new List Widget. |
|
| Method Summary | |
|---|---|
Label |
addItem(int index,
java.lang.String text)
Creates a Label and adds it to the List (at the given position). |
Label |
addItem(int index,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position). |
Label |
addItem(int index,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position). |
Label |
addItem(java.lang.String text)
Creates a Label and adds it to the List (at the end). |
Label |
addItem(java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position). |
Label |
addItem(java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position). |
Label |
createItem(java.lang.String text)
Creates a Label and adds it to the List (at the end). |
Label |
createItem(java.lang.String text,
org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position). |
Label |
createItem(java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a Label from the parameters. |
| 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.xith3d.ui.hud.base.AbstractList |
|---|
addItem, addItem, addItemSetsSelectedItem, addSelectionListener, clear, getHeightByItems, getItem, getItem, getItems, getItemsCount, getMaxHeight, getSelectedIndex, getSelectedItem, isScrollBarForced, isScrollBarVisible, removeItem, removeItem, removeSelectionListener, selectNextItem, selectPreviousItem, setAddItemSetsSelectedItem, setHeightByItems, setMaxHeight, setScrollBarForced, setScrollBarVisible, setSelectedItem, setSelectedItem |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Constructor Detail |
|---|
public TextList(float width,
float height,
int zIndex,
List.Description listDesc)
width - the new (outer) widthheight - the new (outer) heightzIndex - the new z-indexlistDesc - the List.Description to describe this new List Widget
public TextList(float width,
float height,
List.Description listDesc)
width - the new (outer) widthheight - the new (outer) heightlistDesc - the List.Description to describe this new List Widget
public TextList(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
List.Description listDesc)
size - the new (outer) sizezIndex - the new z-indexlistDesc - the List.Description to describe this new List Widget
public TextList(org.openmali.types.twodee.Sized2fRO size,
List.Description listDesc)
size - the new (outer) sizelistDesc - the List.Description to describe this new List Widget
public TextList(float width,
float height,
int zIndex)
width - the new (outer) widthheight - the new (outer) heightzIndex - the new z-index
public TextList(float width,
float height)
width - the new (outer) widthheight - the new (outer) height
public TextList(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
size - the new (outer) sizezIndex - the new z-indexpublic TextList(org.openmali.types.twodee.Sized2fRO size)
size - the new (outer) size| Method Detail |
|---|
public Label createItem(java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Label from the parameters.
createItem in interface AbstractTextList<Label>text - the text content for the new Item
Label
public final Label createItem(java.lang.String text,
org.openmali.vecmath2.Colorf color)
Label and adds it to the List (at the given position).
createItem in interface AbstractTextList<Label>text - the text content for the new Item
Labelpublic final Label createItem(java.lang.String text)
Label and adds it to the List (at the end).
createItem in interface AbstractTextList<Label>text - the text content for the new Item
Label
public Label addItem(int index,
java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Label and adds it to the List (at the given position).
addItem in interface AbstractTextList<Label>index - the position to add the Item attext - the text content for the new Item
Label
public final Label addItem(java.lang.String text,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Label and adds it to the List (at the given position).
addItem in interface AbstractTextList<Label>text - the text content for the new Item
Label
public final Label addItem(int index,
java.lang.String text,
org.openmali.vecmath2.Colorf color)
Label and adds it to the List (at the given position).
addItem in interface AbstractTextList<Label>index - the position to add the Item attext - the text content for the new Item
Label
public final Label addItem(java.lang.String text,
org.openmali.vecmath2.Colorf color)
Label and adds it to the List (at the given position).
addItem in interface AbstractTextList<Label>text - the text content for the new Item
Label
public final Label addItem(int index,
java.lang.String text)
Label and adds it to the List (at the given position).
addItem in interface AbstractTextList<Label>index - the position to add the Item attext - the text content for the new Item
Labelpublic final Label addItem(java.lang.String text)
Label and adds it to the List (at the end).
addItem in interface AbstractTextList<Label>text - the text content for the new Item
Label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||