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

Public Member Functions

void dispose ()
 
TooltipText getTooltip ()
 
 GUILabelStats (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final Color backgroundColor, final int stat, @NotNull final Alignment alignment, @NotNull final Stats stats, @NotNull final GuiFactory guiFactory)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel
Dimension getMaximumSize ()
 
Dimension getMinimumSize ()
 
Dimension getPreferredSize ()
 
 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
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

boolean isOverloaded ()
 

Private Attributes

final int stat
 
final Stats stats
 
final StatsListener statsListener
 

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 GUILabel that displays a value of the last received "stats" command.

Author
Lauwenmark
Andreas Kirschbaum

Definition at line 43 of file GUILabelStats.java.

Constructor & Destructor Documentation

◆ GUILabelStats()

com.realtime.crossfire.jxclient.gui.label.GUILabelStats.GUILabelStats ( @NotNull final TooltipManager  tooltipManager,
@NotNull final GUIElementListener  elementListener,
@NotNull final String  name,
@NotNull final Font  textFont,
@NotNull final Color  textColor,
@NotNull final Color  textHighlightColor,
@Nullable final Color  backgroundColor,
final int  stat,
@NotNull final Alignment  alignment,
@NotNull final Stats  stats,
@NotNull final GuiFactory  guiFactory 
)

Member Function Documentation

◆ dispose()

void com.realtime.crossfire.jxclient.gui.label.GUILabelStats.dispose ( )

◆ getTooltip()

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

◆ isOverloaded()

boolean com.realtime.crossfire.jxclient.gui.label.GUILabelStats.isOverloaded ( )
private

Returns whether the character is currently overloaded.

Returns
whether the character is currently overloaded

Definition at line 217 of file GUILabelStats.java.

References com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_OVERLOAD, com.realtime.crossfire.jxclient.stats.Stats.getStat(), and com.realtime.crossfire.jxclient.gui.label.GUILabelStats.stats.

Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelStats.getTooltip().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ serialVersionUID

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

The serial version UID.

Definition at line 48 of file GUILabelStats.java.

◆ stat

final int com.realtime.crossfire.jxclient.gui.label.GUILabelStats.stat
private

◆ stats

final Stats com.realtime.crossfire.jxclient.gui.label.GUILabelStats.stats
private

◆ statsListener

final StatsListener com.realtime.crossfire.jxclient.gui.label.GUILabelStats.statsListener
private

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