Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
GUILabelMessage (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final JXCWindowRenderer windowRenderer, @NotNull final Font font, @NotNull final Color color, @Nullable final Color backgroundColor, @NotNull final GuiFactory guiFactory) | |
void | setText (@NotNull final String text) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel | |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
TooltipText | getTooltip () |
GUIMultiLineLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final Font textFont, @NotNull final Color textColor, @Nullable final Color backgroundColor, @NotNull final Alignment alignment, @NotNull final String text, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
void | paintComponent (@NotNull final Graphics g) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel | |
void | setTextHighlight (final boolean textHighlight) |
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 | mouseDragged (@NotNull final MouseEvent e) |
void | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@NotNull final MouseEvent e) |
void | mousePressed (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
void | mouseWheelMoved (final int wheelRotation) |
void | setChanged () |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
void | setDefault (final boolean isDefault) |
void | setIgnore () |
String | toString () |
Private Attributes | |
final CrossfireDrawextinfoListener | crossfireDrawextinfoListener |
final CrossfireDrawinfoListener | crossfireDrawinfoListener |
final CrossfireServerConnection | crossfireServerConnection |
final GuiFactory | guiFactory |
final JXCWindowRenderer | windowRenderer |
Static Private Attributes | |
static final int | MAX_LINE_LENGTH = 75 |
static final long | serialVersionUID = 1 |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel | |
void | textChanged () |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUILabel | |
void | drawLine (@NotNull final Graphics2D g, final int y0, final int h0, @NotNull final String text) |
GUILabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final Color backgroundColor, @NotNull final Alignment textAlignment, @NotNull final GuiFactory guiFactory) | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel | |
AbstractLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final BufferedImage backgroundPicture, @Nullable final Color backgroundColor, @NotNull final GuiFactory guiFactory) | |
String | getText () |
Color | getTextColor () |
Font | getTextFont () |
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 GUIHTMLLabel that displays the last received "drawinfo" message.
Definition at line 44 of file GUILabelMessage.java.
com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final CrossfireServerConnection | crossfireServerConnection, | ||
@NotNull final JXCWindowRenderer | windowRenderer, | ||
@NotNull final Font | font, | ||
@NotNull final Color | color, | ||
@Nullable final Color | backgroundColor, | ||
@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 |
windowRenderer | the window renderer this element belongs to |
font | the font to use |
color | the color to use |
backgroundColor | the background color |
guiFactory | the global GUI factory instance |
Definition at line 125 of file GUILabelMessage.java.
References com.realtime.crossfire.jxclient.gui.label.AbstractLabel.backgroundColor, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireDrawextinfoListener, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireDrawinfoListener, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.guiFactory, com.realtime.crossfire.jxclient.gui.label.Alignment.LEFT, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager, and com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.windowRenderer.
void com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose | ( | ) |
Releases all allocated resources.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 135 of file GUILabelMessage.java.
References com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireDrawextinfoListener, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireDrawinfoListener, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.crossfireServerConnection, com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireDrawextinfoListener(), and com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireDrawinfoListener().
void com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.setText | ( | @NotNull final String | text | ) |
Sets the label text.
text | the text |
Reimplemented from com.realtime.crossfire.jxclient.gui.label.AbstractLabel.
Definition at line 142 of file GUILabelMessage.java.
References com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.MAX_LINE_LENGTH, and com.realtime.crossfire.jxclient.gui.label.AbstractLabel.text.
|
private |
The CrossfireDrawextinfoListener registered to receive drawextinfo messages.
Definition at line 96 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose(), and com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage().
|
private |
The CrossfireDrawinfoListener registered to receive drawinfo messages.
Definition at line 79 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose(), and com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage().
|
private |
The CrossfireServerConnection to monitor.
Definition at line 60 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.dispose(), and com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage().
|
private |
The global GuiFactory instance.
Definition at line 72 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage().
|
staticprivate |
The maximum line length in characters.
Definition at line 49 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.setText().
|
staticprivate |
The serial version UID.
Definition at line 54 of file GUILabelMessage.java.
|
private |
The JXCWindowRenderer this element belongs to.
Definition at line 66 of file GUILabelMessage.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage().