Crossfire JXClient, Trunk
|
Public Member Functions | |
Dimension | getMaximumSize () |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
TooltipText | getTooltip () |
GUIOneLineLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @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 | setText (@NotNull final String text) |
void | setTextHighlight (final boolean textHighlight) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
void | dispose () |
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 Member Functions | |
Dimension | getMinimumSizeInt () |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
Additional Inherited Members | |
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) | |
void | textChanged () |
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 AbstractLabel that renders the text as a plain string.
Definition at line 43 of file GUIOneLineLabel.java.
com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.GUIOneLineLabel | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@Nullable final BufferedImage | picture, | ||
@NotNull final Font | textFont, | ||
@NotNull final Color | textColor, | ||
@NotNull final Color | textHighlightColor, | ||
@Nullable final Color | backgroundColor, | ||
@NotNull final Alignment | alignment, | ||
@NotNull final String | text, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the window renderer to notify |
name | the name of this element |
picture | the background image; null
|
textFont | the font for rendering the label text |
textColor | the text color when not highlighted |
textHighlightColor | the text color when highlighted |
backgroundColor | the background color |
alignment | the text alignment |
text | the label text |
guiFactory | the global GUI factory instance |
Definition at line 64 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.AbstractLabel.backgroundColor, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.text, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.textColor, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.textFont, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.textHighlightColor, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
Dimension com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMaximumSize | ( | ) |
Definition at line 91 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSizeInt().
Dimension com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSize | ( | ) |
Definition at line 84 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSizeInt().
|
private |
Returns the minimal size needed to display this component.
Definition at line 102 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.AbstractLabel.getText(), com.realtime.crossfire.jxclient.gui.gui.GuiUtils.getTextDimension(), and com.realtime.crossfire.jxclient.gui.label.AbstractLabel.getTextFont().
Referenced by com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMaximumSize(), com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSize(), and com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getPreferredSize().
Dimension com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getPreferredSize | ( | ) |
Definition at line 77 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSizeInt().
TooltipText com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getTooltip | ( | ) |
Returns the current tooltip text.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.label.GUILabelStats2, and com.realtime.crossfire.jxclient.gui.label.GUILabelStats.
Definition at line 112 of file GUIOneLineLabel.java.
void com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.notifyOpen | ( | ) |
Called each time the enclosing dialog is opened (or raised).
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.
Definition at line 107 of file GUIOneLineLabel.java.
void com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.paintComponent | ( | @NotNull final Graphics | g | ) |
Reimplemented from com.realtime.crossfire.jxclient.gui.label.AbstractLabel.
Definition at line 69 of file GUIOneLineLabel.java.
References com.realtime.crossfire.jxclient.gui.label.GUILabel.drawLine(), and com.realtime.crossfire.jxclient.gui.label.AbstractLabel.getText().
|
staticprivate |
The serial version UID.
Definition at line 48 of file GUIOneLineLabel.java.