Crossfire JXClient, Trunk
|
Public Member Functions | |
abstract void | dispose () |
void | setGauge (@NotNull final GUIGaugeListener gauge) |
Protected Member Functions | |
GaugeUpdater (@NotNull final ExperienceTable experienceTable, final boolean hideIfEmpty) | |
long | getExperienceToNextLevel (final int level, final long experience) |
int | getPercentsToNextLevel (final int level, final long experience) |
void | setValues (final int curValue, final int minValue, final int maxValue) |
void | setValues (final int curValue, final int minValue, final int maxValue, @NotNull final String labelText, @NotNull final String tooltipText) |
Private Attributes | |
final ExperienceTable | experienceTable |
GUIGaugeListener | gauge |
final boolean | hideIfEmpty |
Updates the displayed values in a GUIGauge.
Definition at line 33 of file GaugeUpdater.java.
|
protected |
Creates a new instance.
experienceTable | the experience table to query |
hideIfEmpty | if true the gauge will be hidden if all values are 0 |
Definition at line 57 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.experienceTable, and com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.hideIfEmpty.
|
abstract |
Frees allocated resources.
Reimplemented in com.realtime.crossfire.jxclient.gui.gauge.StatGaugeUpdater, com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2, com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater, and com.realtime.crossfire.jxclient.gui.gauge.SkillGaugeUpdater.
|
protected |
Returns the experience needed to reach next level.
level | the level |
experience | the experience |
Definition at line 128 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.experienceTable, and com.realtime.crossfire.jxclient.stats.ExperienceTable.getExperienceToNextLevel().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.StatGaugeUpdater.updateExperienceNextLevel().
|
protected |
Returns the experience fraction of the current level.
level | the level |
experience | the experience |
Definition at line 118 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.experienceTable, and com.realtime.crossfire.jxclient.stats.ExperienceTable.getPercentsToNextLevel().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.update(), and com.realtime.crossfire.jxclient.gui.gauge.StatGaugeUpdater.updateExperienceNextLevel().
void com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.setGauge | ( | @NotNull final GUIGaugeListener | gauge | ) |
Sets the gauge to update.
gauge | the gauge |
Definition at line 71 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.gauge, com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.hideIfEmpty, and com.realtime.crossfire.jxclient.gui.gauge.GUIGaugeListener.setHidden().
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDupGauge(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseGauge(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextGauge().
|
protected |
Updates the gauge values.
curValue | the current value |
minValue | the minimum value |
maxValue | the maximum value |
Definition at line 85 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.gauge, com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.hideIfEmpty, com.realtime.crossfire.jxclient.gui.gauge.GUIGaugeListener.setHidden(), and com.realtime.crossfire.jxclient.gui.gauge.GUIGaugeListener.setValues().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.update(), and com.realtime.crossfire.jxclient.gui.gauge.StatGaugeUpdater.updateExperienceNextLevel().
|
protected |
Updates the gauge values.
curValue | the current value |
minValue | the minimum value |
maxValue | the maximum value |
labelText | the text to draw on the gauge |
tooltipText | the tooltip suffix |
Definition at line 106 of file GaugeUpdater.java.
References com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.gauge, and com.realtime.crossfire.jxclient.gui.gauge.GUIGaugeListener.setValues().
|
private |
The experience table to query.
Definition at line 39 of file GaugeUpdater.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater.ActiveSkillGaugeUpdater(), com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.ActiveSkillGaugeUpdater2(), com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.GaugeUpdater(), com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.getExperienceToNextLevel(), com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.getPercentsToNextLevel(), com.realtime.crossfire.jxclient.gui.gauge.SkillGaugeUpdater.SkillGaugeUpdater(), and com.realtime.crossfire.jxclient.gui.gauge.StatGaugeUpdater.StatGaugeUpdater().
|
private |
Set the gauge to update.
Definition at line 45 of file GaugeUpdater.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.setGauge(), and com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.setValues().
|
private |
If true then the gauge should be hidden if all values are 0.
Definition at line 50 of file GaugeUpdater.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.GaugeUpdater(), com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.setGauge(), and com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater.setValues().