Crossfire JXClient, Trunk
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle:
Collaboration graph

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 ()
 

Detailed Description

A dialog title that allows to move the dialog.

Author
Andreas Kirschbaum

Definition at line 43 of file GUIDialogTitle.java.

Constructor & Destructor Documentation

◆ GUIDialogTitle()

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.

Parameters
tooltipManagerthe tooltip manager to update
windowRendererthe window renderer this element belongs to
elementListenerthe element listener to notify
namethe name of this element
textFontthe font for rendering the label text
textColorthe font color
backgroundColorthe background color
titlethe title text
guiFactorythe 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.

Member Function Documentation

◆ mouseDragged()

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.

Parameters
ethe 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().

Here is the call graph for this function:

◆ mousePressed()

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.

Parameters
ethe 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.

Here is the call graph for this function:

◆ mouseReleased()

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.

Parameters
ethe 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.

Here is the call graph for this function:

◆ moveTo()

void com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo ( @NotNull final MouseEvent  e)
private

Member Data Documentation

◆ guiFactory

final GuiFactory com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.guiFactory
private

◆ offset

Point com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.offset
private

Set to the distance of the dialog coordinates relative to the mouse position while dragging start. Else set to

null

.

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().

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 48 of file GUIDialogTitle.java.

◆ windowRenderer

final JXCWindowRenderer com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.windowRenderer
private

The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mouseDragged
void mouseDragged(@NotNull final MouseEvent e)
Definition: GUIDialogTitle.java:115
com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseMoved
void mouseMoved(@NotNull final MouseEvent e)
Definition: AbstractGUIElement.java:211