Crossfire JXClient, Trunk
|
Public Member Functions | |
GUIDialogTitle (@NotNull final TooltipManager tooltipManager, @NotNull final JXCWindowRenderer windowRenderer, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Font textFont, @NotNull final Color textColor, @Nullable final Color backgroundColor, @NotNull final String title, @NotNull final GuiFactory guiFactory) | |
void | mouseDragged (@NotNull final MouseEvent e) |
void | mousePressed (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel | |
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 | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@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 | |
void | moveTo (@NotNull final MouseEvent e) |
Private Attributes | |
final GuiFactory | guiFactory |
Point | offset |
final JXCWindowRenderer | windowRenderer |
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 dialog title that allows to move the dialog.
Definition at line 43 of file GUIDialogTitle.java.
com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final JXCWindowRenderer | windowRenderer, | ||
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final Font | textFont, | ||
@NotNull final Color | textColor, | ||
@Nullable final Color | backgroundColor, | ||
@NotNull final String | title, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
windowRenderer | the window renderer this element belongs to |
elementListener | the element listener to notify |
name | the name of this element |
textFont | the font for rendering the label text |
textColor | the font color |
backgroundColor | the background color |
title | the title text |
guiFactory | the global GUI factory instance |
Definition at line 81 of file GUIDialogTitle.java.
References com.realtime.crossfire.jxclient.gui.label.AbstractLabel.backgroundColor, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.guiFactory, com.realtime.crossfire.jxclient.gui.label.Alignment.LEFT, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.textColor, com.realtime.crossfire.jxclient.gui.label.AbstractLabel.textFont, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager, and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.windowRenderer.
void com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseDragged | ( | @NotNull final MouseEvent | e | ) |
Will be called when the mouse moves within this component while the button is pressed. This event will be delivered after mouseMoved(MouseEvent).
Note: if the mouse leaves this element's bounding box while the mouse button is still pressed, further
(but no
) events will be generated.
e | the mouse event relative to this element |
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 115 of file GUIDialogTitle.java.
References com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo().
void com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mousePressed | ( | @NotNull final MouseEvent | e | ) |
Will be called when the user has pressed the mouse inside this element.
e | the mouse event relative to this element |
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 88 of file GUIDialogTitle.java.
References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.guiFactory, and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.offset.
void com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseReleased | ( | @NotNull final MouseEvent | e | ) |
Will be called when the user has released the mouse. This event may be delivered even if no previous mousePressed(MouseEvent) has been delivered before.
e | the mouse event relative to this element |
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 106 of file GUIDialogTitle.java.
References com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.offset.
|
private |
Moves the dialog the given point.
e | the destination point |
Definition at line 126 of file GUIDialogTitle.java.
References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getWindowHeight(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getWindowWidth(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.guiFactory, com.realtime.crossfire.jxclient.gui.gui.Gui.isAutoSize(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.offset, com.realtime.crossfire.jxclient.gui.gui.Gui.setBounds(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseDragged(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseReleased().
|
private |
The global GuiFactory instance.
Definition at line 60 of file GUIDialogTitle.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mousePressed(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo().
|
private |
Set to the distance of the dialog coordinates relative to the mouse position while dragging start. Else set to
.
Definition at line 67 of file GUIDialogTitle.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mousePressed(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseReleased(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo().
|
staticprivate |
The serial version UID.
Definition at line 48 of file GUIDialogTitle.java.
|
private |
The JXCWindowRenderer this element belongs to.
Definition at line 54 of file GUIDialogTitle.java.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle(), and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo().