|
||||||||||
| 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.base.BackgroundSettableRectangularWidget
org.xith3d.ui.hud.widgets.assemblies.HUDConsole
public class HUDConsole
A Console is what you will know from many kinds of games mostly from FPS games. Logging is dumped to it and you can type commands.
| Nested Class Summary | |
|---|---|
static class |
HUDConsole.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 | |
|---|---|
HUDConsole(float width,
float height,
boolean initiallyVisible)
|
|
HUDConsole(float width,
float height,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
HUDConsole(float width,
float height,
int channelFilter,
boolean initiallyVisible)
|
|
HUDConsole(float width,
float height,
int channelFilter,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
HUDConsole(float width,
float height,
int channelFilter,
int logLevel,
boolean initiallyVisible)
|
|
HUDConsole(float width,
float height,
int channelFilter,
int logLevel,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
int logLevel,
boolean initiallyVisible)
|
|
HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
int logLevel,
HUDConsole.Description desc,
boolean initiallyVisible)
|
|
| Method Summary | |
|---|---|
boolean |
acceptsChannel(org.jagatoo.logging.LogChannel channel)
|
void |
addConsoleListener(ConsoleListener l)
Adds a ConsoleListener to the list of notified listeners. |
void |
close()
|
protected AbstractImage |
createBackgroundImage(float width,
float height,
org.openmali.vecmath2.Colorf color)
|
protected AbstractImage |
createBackgroundImage(float width,
float height,
Texture texture)
|
void |
flush()
|
Border |
getBorder()
|
int |
getChannelFilter()
|
char[] |
getIgnoredChars()
|
org.openmali.vecmath2.Colorf |
getListFontColor(int logLevel)
|
int |
getLogLevel()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
boolean |
isInputBoxVisible()
|
boolean |
isPoppedUp()
|
boolean |
isTrimMessages()
|
protected void |
onAddedToHUD(HUD hud)
This event is fired, when this Widget is added to a WidgetContainer and the container itself is already added to the HUD or is the HUD itself. |
protected void |
onCommandEntered(java.lang.String commandLine)
This event is fired when a command has been typed to the input-box. |
void |
popUp(boolean p)
Pops up the popupable Widget (or un-pops it) |
void |
print(org.jagatoo.logging.LogChannel channel,
int logLevel,
java.lang.String message)
|
boolean |
println(int logLevel,
java.lang.String message)
|
void |
println(org.jagatoo.logging.LogChannel channel,
int logLevel,
java.lang.String message)
|
boolean |
println(java.lang.String message)
|
boolean |
println(java.lang.String message,
org.openmali.vecmath2.Colorf color)
|
void |
registerCommand(org.jagatoo.commands.Command command)
|
void |
registerCommands(org.jagatoo.commands.Command[] commands)
|
void |
registerCommands(java.util.List<org.jagatoo.commands.Command> commands)
|
void |
removeConsoleListener(ConsoleListener l)
Removes a ConsoleListener from the list of notified listeners. |
void |
setBorder(Border.Description borderDesc)
Creates a new Border from the given Border.Desctiption and invokes setBorder(Border). |
void |
setBorder(Border border)
Sets the Border to use for this BorderSettable Widget. |
void |
setChannelFilter(int filter)
|
void |
setIgnoredChars(char... ignoredChars)
Sets the array of chars ignored by this HUDConsole. |
void |
setInputBoxVisible(boolean visible)
Defines, if the HUDConsole's input-box is visible or hidden. |
void |
setListFontColor(int logLevel,
org.openmali.vecmath2.Colorf color)
Sets the color to be used for the given LogLevel. |
void |
setLogLevel(int logLevel)
|
protected boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTrimMessages(boolean trimMessages)
Sets if the messages should be trimmed before display. |
protected void |
updatePreviewListSize(List<Label> previewList)
|
protected void |
updateTypePreview(java.lang.String text)
|
| Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableRectangularWidget |
|---|
getBackground, getBackgroundColor, getBackgroundTileHeight, getBackgroundTileSize, getBackgroundTileWidth, setBackground, setBackground, setBackground, setBackgroundTileSize, setBackgroundTileSize, setContainer |
| 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.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Constructor Detail |
|---|
public HUDConsole(float width,
float height,
int channelFilter,
int logLevel,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(float width,
float height,
int channelFilter,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(float width,
float height,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
int logLevel,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
HUDConsole.Description desc,
boolean initiallyVisible)
public HUDConsole(float width,
float height,
int channelFilter,
int logLevel,
boolean initiallyVisible)
public HUDConsole(float width,
float height,
int channelFilter,
boolean initiallyVisible)
public HUDConsole(float width,
float height,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
int logLevel,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
int channelFilter,
boolean initiallyVisible)
public HUDConsole(org.openmali.types.twodee.Sized2fRO size,
boolean initiallyVisible)
| Method Detail |
|---|
public final void addConsoleListener(ConsoleListener l)
ConsoleListener to the list of notified listeners.
l - public final void removeConsoleListener(ConsoleListener l)
ConsoleListener from the list of notified listeners.
l - public void setBorder(Border border)
setBorder in interface BorderSettableborder - the new Border (null for no border)public void setBorder(Border.Description borderDesc)
setBorder in interface BorderSettableborderDesc - the Border.Description to create the new Border from (null for no border)BorderSettable.setBorder(Border)public final Border getBorder()
getBorder in interface BorderSettable
protected AbstractImage createBackgroundImage(float width,
float height,
Texture texture)
createBackgroundImage in class BackgroundSettableRectangularWidget
protected AbstractImage createBackgroundImage(float width,
float height,
org.openmali.vecmath2.Colorf color)
createBackgroundImage in class BackgroundSettableRectangularWidgetpublic void popUp(boolean p)
popUp in interface PopUpablep - if true, the pop-up will be visiblepublic boolean isPoppedUp()
isPoppedUp in interface PopUpablepublic float getTransparency()
getTransparency in interface Widget
public void setListFontColor(int logLevel,
org.openmali.vecmath2.Colorf color)
logLevel - color - public org.openmali.vecmath2.Colorf getListFontColor(int logLevel)
logLevel -
public final void setLogLevel(int logLevel)
public final int getLogLevel()
getLogLevel in interface org.jagatoo.logging.LogInterfacepublic final void setChannelFilter(int filter)
public final int getChannelFilter()
getChannelFilter in interface org.jagatoo.logging.LogInterfacepublic final boolean acceptsChannel(org.jagatoo.logging.LogChannel channel)
public boolean println(java.lang.String message,
org.openmali.vecmath2.Colorf color)
public boolean println(int logLevel,
java.lang.String message)
public boolean println(java.lang.String message)
public void print(org.jagatoo.logging.LogChannel channel,
int logLevel,
java.lang.String message)
print in interface org.jagatoo.logging.LogInterface
public void println(org.jagatoo.logging.LogChannel channel,
int logLevel,
java.lang.String message)
println in interface org.jagatoo.logging.LogInterfacepublic void registerCommand(org.jagatoo.commands.Command command)
public void registerCommands(org.jagatoo.commands.Command[] commands)
public void registerCommands(java.util.List<org.jagatoo.commands.Command> commands)
protected void onCommandEntered(java.lang.String commandLine)
commandLine - the entered commandprotected void updatePreviewListSize(List<Label> previewList)
protected void updateTypePreview(java.lang.String text)
public void flush()
flush in interface org.jagatoo.logging.LogInterfacepublic void close()
close in interface org.jagatoo.logging.LogInterfacepublic void setIgnoredChars(char... ignoredChars)
ignoredChars - public char[] getIgnoredChars()
public void setTrimMessages(boolean trimMessages)
trimMessages - 'true' if messages should be trimmed.public boolean isTrimMessages()
public void setInputBoxVisible(boolean visible)
HUDConsole's input-box is visible or hidden.
visible - public boolean isInputBoxVisible()
HUDConsole's input-box is visible or hidden.protected void onAddedToHUD(HUD hud)
WidgetBase
onAddedToHUD in class WidgetBasehud - the HUD, the Widget is added to
protected boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBaseprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||