|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.Component
com.threerings.opengl.gui.Container
com.threerings.opengl.gui.ChatOverlay
public class ChatOverlay
A chat display for use as a HUD element.
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
DEFAULT, DISABLED, HOVER |
| Constructor Summary | |
|---|---|
ChatOverlay(GlContext ctx)
Creates a new chat overlay. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
displayMessage(com.threerings.crowd.chat.data.ChatMessage msg,
boolean alreadyDisplayed)
|
Component |
getHitComponent(int mx,
int my)
Returns the component "hit" by the specified mouse coordinates which might be this component or any of its children. |
void |
setBundle(String bundle)
Sets the bundle to use to translate chat messsages. |
void |
setEnabled(boolean enabled)
Sets this components enabled state. |
void |
setPreferredWidth(int width)
Sets the preferred width for the text area. |
void |
setSystemColors(Color4f info,
Color4f feedback,
Color4f attention)
Sets the colors to use for system chat messages. |
void |
validate()
Instructs this component to lay itself out and then mark itself as valid. |
| Methods inherited from class com.threerings.opengl.gui.Container |
|---|
add, add, add, add, getComponent, getComponentCount, getComponentIndex, getLayoutManager, remove, remove, removeAll, replace, setAlpha, setHoverable, setLayoutManager |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatOverlay(GlContext ctx)
| Method Detail |
|---|
public void setBundle(String bundle)
public void setPreferredWidth(int width)
public void setSystemColors(Color4f info,
Color4f feedback,
Color4f attention)
public void clear()
clear in interface com.threerings.crowd.chat.client.ChatDisplay
public boolean displayMessage(com.threerings.crowd.chat.data.ChatMessage msg,
boolean alreadyDisplayed)
displayMessage in interface com.threerings.crowd.chat.client.ChatDisplaypublic void setEnabled(boolean enabled)
Component
setEnabled in class Container
public Component getHitComponent(int mx,
int my)
Component
getHitComponent in class Containerpublic void validate()
Component
validate in class Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||