22 package com.realtime.crossfire.jxclient.gui.log;
27 import java.awt.Color;
28 import java.awt.Image;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
62 super(tooltipManager, elementListener, name, backgroundImage, fonts);
80 public void setColor(
final int index, @NotNull
final Color color) {
81 messageBufferUpdater.
setColor(index, color);
89 messageBufferUpdater.
setTypes(types);
Listener for GUIElement related events.
void setColor(final int index, @NotNull final Color color)
Sets a color mapping.
final TooltipManager tooltipManager
The TooltipManager to update.
void setTypes(final int types)
Sets the message types to show.
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)
Creates a new instance.
final MessageBufferUpdater messageBufferUpdater
The message buffer updater for updating buffer.
A gui element implementing the message window.
static final long serialVersionUID
The serial version UID.
final GUIElementListener elementListener
The GUIElementListener to notify.
final Image backgroundImage
The background image drawn below the text contents.
final String name
The name of this element.
final Fonts fonts
The Fonts instance for looking up fonts.
void dispose()
Releases all allocated resources.
void setColor(final int index, @NotNull final Color color)
Sets a color mapping.
Buffer getBuffer()
Returns the Buffer instance containing the text messages.
void setTypes(final int types)
Sets the message types to show.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
void dispose()
Releases resources.
Abstract base class for gui elements implementing text fields.
Adds drawinfo, drawextinfo, and query messages to a Buffer instance.