Crossfire JXClient, Trunk
|
Public Member Functions | |
GUITextGauge (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Image pictureFull, @NotNull final Image pictureLow, @Nullable final Image pictureNegative, @NotNull final Image pictureEmpty, @NotNull final Orientation orientation, @Nullable final String tooltipFormat, @NotNull final Color color, @NotNull final Font font, final float alpha, @Nullable final CommandList commandList, @NotNull final GuiFactory guiFactory, @NotNull final Stats stats) | |
void | paintComponent (@NotNull final Graphics g) |
void | setValues (final int curValue, final int minValue, final int maxValue, @NotNull final String labelText, @NotNull final String tooltipText) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gauge.GUIGauge | |
Dimension | getMaximumSize () |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
TooltipText | getTooltip () |
GUIGauge (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final Image fullImage, @Nullable final Image lowImage, @Nullable final Image negativeImage, @Nullable final Image emptyImage, @NotNull final Orientation orientation, @Nullable final String tooltipFormat, final float alpha, @Nullable final CommandList commandList, @NotNull final GuiFactory guiFactory, @NotNull final Stats stats) | |
void | mouseClicked (@NotNull final MouseEvent e) |
void | notifyOpen () |
void | setBounds (final int x, final int y, final int width, final int height) |
void | setHidden (final boolean hidden) |
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 | 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 Attributes | |
final Color | color |
final Font | font |
String | labelText = "" |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
Additional Inherited Members | |
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 () |
A GUIGauge which displays the current value as a text string on top of the gauge.
Definition at line 44 of file GUITextGauge.java.
com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final Image | pictureFull, | ||
@NotNull final Image | pictureLow, | ||
@Nullable final Image | pictureNegative, | ||
@NotNull final Image | pictureEmpty, | ||
@NotNull final Orientation | orientation, | ||
@Nullable final String | tooltipFormat, | ||
@NotNull final Color | color, | ||
@NotNull final Font | font, | ||
final float | alpha, | ||
@Nullable final CommandList | commandList, | ||
@NotNull final GuiFactory | guiFactory, | ||
@NotNull final Stats | stats | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
pictureFull | the image for positive values |
pictureLow | the image for low (<30%) values |
pictureNegative | the image for negative values |
pictureEmpty | the image for an empty gauge |
orientation | the gauge's orientation |
tooltipFormat | the format for displaying tooltips; if set to null
|
color | the text color |
font | the text font |
alpha | transparency to draw with |
commandList | the command list that is executed on button 2 |
guiFactory | the global GUI factory instance |
stats | the stats instance to use |
Definition at line 88 of file GUITextGauge.java.
References com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.alpha, com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.color, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.commandList, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.font, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.orientation, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.stats, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.tooltipFormat, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.paintComponent | ( | @NotNull final Graphics | g | ) |
Reimplemented from com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.
Definition at line 95 of file GUITextGauge.java.
References com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.color, com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.font, and com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.labelText.
void com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.setValues | ( | final int | curValue, |
final int | minValue, | ||
final int | maxValue, | ||
@NotNull final String | labelText, | ||
@NotNull final String | tooltipText | ||
) |
Sets the values to display.
curValue | the values to display |
minValue | the minimum possible value |
maxValue | the maximum possible value |
labelText | the label text |
tooltipText | the tooltip suffix |
Reimplemented from com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.
Definition at line 109 of file GUITextGauge.java.
References com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.labelText, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChanged(), and com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.tooltipText.
|
private |
The text color.
Definition at line 55 of file GUITextGauge.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), and com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.paintComponent().
|
private |
The text font.
Definition at line 61 of file GUITextGauge.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), and com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.paintComponent().
|
private |
The label text.
Definition at line 67 of file GUITextGauge.java.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.paintComponent(), and com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.setValues().
|
staticprivate |
The serial version UID.
Definition at line 49 of file GUITextGauge.java.