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

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

Detailed Description

A AbstractLabel that renders the text as a plain string.

Author
Andreas Kirschbaum

Definition at line 43 of file GUIOneLineLabel.java.

Constructor & Destructor Documentation

◆ GUIOneLineLabel()

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.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe window renderer to notify
namethe name of this element
picturethe background image;
null
for no background
textFontthe font for rendering the label text
textColorthe text color when not highlighted
textHighlightColorthe text color when highlighted
backgroundColorthe background color
alignmentthe text alignment
textthe label text
guiFactorythe 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.

Member Function Documentation

◆ getMaximumSize()

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

Here is the call graph for this function:

◆ getMinimumSize()

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

Here is the call graph for this function:

◆ getMinimumSizeInt()

Dimension com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getMinimumSizeInt ( )
private

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

Here is the call graph for this function:

◆ getTooltip()

TooltipText com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.getTooltip ( )

Returns the current tooltip text.

Returns
the tooltip text or
null
to not show a tooltip

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.

◆ notifyOpen()

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.

◆ paintComponent()

void com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.paintComponent ( @NotNull final Graphics  g)

Member Data Documentation

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 48 of file GUIOneLineLabel.java.


The documentation for this class was generated from the following file: