Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
TooltipText | getTooltip () |
GUIMessageLog (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final CrossfireServerConnection crossfireServerConnection, @Nullable final Image backgroundImage, @NotNull final Fonts fonts, @NotNull final Color defaultColor, @NotNull final Color selectionColor, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
void | setColor (final int index, @NotNull final Color color) |
void | setTypes (@NotNull final MessageTypes types) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.log.GUILog | |
void | addScrollableListener (@NotNull final ScrollableListener listener) |
boolean | canScroll (final int distance) |
Buffer | getBuffer () |
void | mouseDragged (@NotNull final MouseEvent e) |
void | mousePressed (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
void | mouseWheelMoved (final int wheelRotation) |
void | paintComponent (@NotNull final Graphics g) |
void | removeScrollableListener (@NotNull final ScrollableListener listener) |
void | resetScroll () |
void | scroll (final int distance) |
void | scrollTo (final int pos) |
void | setBounds (final int x, final int y, final int width, final int height) |
void | setShowSentCommands (final boolean showSentCommands) |
void | setShowTimestamps (final boolean showTimestamps) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
int | getDialogBorderBottom () |
int | getDialogBorderLeft () |
int | getDialogBorderRight () |
int | getDialogBorderTop () |
String | getName () |
void | inhibitListeners () |
boolean | isDefault () |
boolean | isIgnore () |
void | mouseClicked (@NotNull final MouseEvent e) |
void | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@NotNull final MouseEvent e) |
void | setChanged () |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
void | setDefault (final boolean isDefault) |
void | setIgnore () |
String | toString () |
Private Attributes | |
final MessageBufferUpdater | messageBufferUpdater |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.log.GUILog | |
GUILog (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final Image backgroundImage, @NotNull final Fonts fonts, @NotNull final GuiFactory guiFactory) | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
TooltipText | newTooltipText (@Nullable final String tooltipText) |
void | tooltipChanged () |
A gui element implementing the message window.
Definition at line 40 of file GUIMessageLog.java.
com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final CrossfireServerConnection | crossfireServerConnection, | ||
@Nullable final Image | backgroundImage, | ||
@NotNull final Fonts | fonts, | ||
@NotNull final Color | defaultColor, | ||
@NotNull final Color | selectionColor, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
crossfireServerConnection | the connection instance |
backgroundImage | the background image; may be null
|
fonts | the Fonts
|
defaultColor | the default color to use for text message not specifying a color |
selectionColor | the selection color |
guiFactory | the global GUI factory instance |
Definition at line 67 of file GUIMessageLog.java.
References com.realtime.crossfire.jxclient.gui.log.GUILog.backgroundImage, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.log.GUILog.getBuffer(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.messageBufferUpdater, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.dispose | ( | ) |
Releases all allocated resources.
Reimplemented from com.realtime.crossfire.jxclient.gui.log.GUILog.
Definition at line 73 of file GUIMessageLog.java.
References com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.dispose(), and com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.messageBufferUpdater.
TooltipText com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.getTooltip | ( | ) |
Returns the current tooltip text.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 80 of file GUIMessageLog.java.
void com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.notifyOpen | ( | ) |
Called each time the enclosing dialog is opened (or raised).
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 85 of file GUIMessageLog.java.
void com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.setColor | ( | final int | index, |
@NotNull final Color | color | ||
) |
Sets a color mapping.
index | the color index to change |
color | the color to map to |
Definition at line 93 of file GUIMessageLog.java.
References com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.messageBufferUpdater, and com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.setColor().
void com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.setTypes | ( | @NotNull final MessageTypes | types | ) |
Sets the message types to show.
types | the types to show |
Definition at line 101 of file GUIMessageLog.java.
References com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.messageBufferUpdater, and com.realtime.crossfire.jxclient.gui.log.MessageBufferUpdater.setTypes().
|
private |
The message buffer updater for updating getBuffer().
Definition at line 51 of file GUIMessageLog.java.
Referenced by com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.dispose(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.setColor(), and com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.setTypes().
|
staticprivate |
The serial version UID.
Definition at line 45 of file GUIMessageLog.java.