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

Public Member Functions

void dispose ()
 
TooltipText getTooltip ()
 
 GUILabelStats2 (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Font font, @NotNull final Color colorNormal, @NotNull final Color colorUpgradable, @NotNull final Color colorDepleted, @NotNull final Color colorBoosted, @NotNull final Color colorBoostedUpgradable, @Nullable final Color backgroundColor, final int statCurrent, final int statBase, final int statRace, final int statApplied, @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 ()
 

Protected Member Functions

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

Private Member Functions

void updateStat ()
 

Private Attributes

Color color
 
final Color colorBoosted
 
final Color colorBoostedUpgradable
 
final Color colorDepleted
 
final Color colorUpgradable
 
final int statApplied
 
final int statBase
 
final int statCurrent
 
final int statRace
 
final Stats stats
 
final StatsListener statsListener
 

Static Private Attributes

static final long serialVersionUID = 1
 

Detailed Description

A GUILabel that displays a value of the last received "stats" command.

Author
Lauwenmark
Andreas Kirschbaum

Definition at line 42 of file GUILabelStats2.java.

Constructor & Destructor Documentation

◆ GUILabelStats2()

com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.GUILabelStats2 ( @NotNull final TooltipManager  tooltipManager,
@NotNull final GUIElementListener  elementListener,
@NotNull final String  name,
@NotNull final Font  font,
@NotNull final Color  colorNormal,
@NotNull final Color  colorUpgradable,
@NotNull final Color  colorDepleted,
@NotNull final Color  colorBoosted,
@NotNull final Color  colorBoostedUpgradable,
@Nullable final Color  backgroundColor,
final int  statCurrent,
final int  statBase,
final int  statRace,
final int  statApplied,
@NotNull final Alignment  alignment,
@NotNull final Stats  stats,
@NotNull final GuiFactory  guiFactory 
)

Creates a new instance.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe element listener to notify
namethe name of this element
fontthe font to use
colorNormalthe normal color
colorUpgradablethe color for upgradable stats
colorDepletedthe color for depleted stats
colorBoostedthe color for boosted stats
colorBoostedUpgradablethe color for boosted and upgradable stats
backgroundColorthe background color
statCurrentthe current stat to display
statBasethe base stat without applied boosts or depletions
statRacethe race's maximum stat
statAppliedthe stat change due to gear or skills
alignmentthe text alignment
statsthe stats instance to use
guiFactorythe global GUI factory instance

Definition at line 186 of file GUILabelStats2.java.

References com.realtime.crossfire.jxclient.stats.Stats.addCrossfireStatsListener(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.backgroundColor, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.color, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorBoosted, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorBoostedUpgradable, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorDepleted, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorUpgradable, 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.GUILabelStats2.statApplied, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statBase, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statCurrent, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statRace, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.stats, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statsListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager, and com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.updateStat().

Here is the call graph for this function:

Member Function Documentation

◆ dispose()

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

◆ getTextColor()

Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.getTextColor ( )
protected

Returns the text color.

Returns
the text color

Reimplemented from com.realtime.crossfire.jxclient.gui.label.AbstractLabel.

Definition at line 242 of file GUILabelStats2.java.

References com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.color.

◆ getTooltip()

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

◆ updateStat()

void com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.updateStat ( )
private

Member Data Documentation

◆ color

Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.color
private

◆ colorBoosted

final Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorBoosted
private

◆ colorBoostedUpgradable

final Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorBoostedUpgradable
private

◆ colorDepleted

final Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorDepleted
private

◆ colorUpgradable

final Color com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.colorUpgradable
private

◆ serialVersionUID

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

The serial version UID.

Definition at line 47 of file GUILabelStats2.java.

◆ statApplied

final int com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statApplied
private

◆ statBase

final int com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statBase
private

◆ statCurrent

final int com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statCurrent
private

◆ statRace

final int com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.statRace
private

◆ stats

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

◆ statsListener

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

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