|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.BackgroundSettableWidget
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 class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
BackgroundSettableWidget.BackgroundSettableDescriptionBase |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| 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)
|
|
| 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 void |
drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
|
void |
dumpKnownCommands()
Dumps all registered Commands to the console. |
void |
flush()
|
int |
getChannelFilter()
|
char[] |
getIgnoredChars()
|
org.openmali.vecmath2.Colorf |
getListFontColor(int logLevel)
|
int |
getLogLevel()
|
org.jagatoo.commands.Command[] |
getRegisteredCommands()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
boolean |
isInputBoxVisible()
|
boolean |
isPoppedUp()
|
boolean |
isTrimMessages()
|
protected void |
onAttachedToHUD(HUD hud)
This event is fired, when this Widget is added to the HUD live Widget hierarchy. |
protected void |
onCommandEntered(java.lang.String commandLine)
This event is fired when a command has been typed to the input-box. |
protected void |
onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
|
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 |
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)
|
void |
setTrimMessages(boolean trimMessages)
Sets if the messages should be trimmed before display. |
protected void |
updatePreviewListSize(List previewList)
|
protected void |
updateTypePreview(java.lang.String text)
|
| Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
drawBackground, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, setBackground, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setNoBackground |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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(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)
| 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 popUp(boolean p)
popUp in interface PopUpablep - if true, the pop-up will be visiblepublic boolean isPoppedUp()
isPoppedUp in interface PopUpable
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 final boolean println(int logLevel,
java.lang.String message)
public final boolean println(java.lang.String message)
public final void print(org.jagatoo.logging.LogChannel channel,
int logLevel,
java.lang.String message)
print in interface org.jagatoo.logging.LogInterface
public final 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)
public org.jagatoo.commands.Command[] getRegisteredCommands()
public void dumpKnownCommands()
protected void onCommandEntered(java.lang.String commandLine)
commandLine - the entered commandprotected void updatePreviewListSize(List 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 onAttachedToHUD(HUD hud)
Widget
onAttachedToHUD in class Widgethud - the HUD, the Widget is added to
protected void onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
onSizeChanged in class Widget
protected void drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
drawWidget in class Widgetprotected void init()
init in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||