 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.list;
36 import java.awt.Color;
37 import java.awt.Dimension;
39 import java.awt.Graphics;
40 import java.awt.Image;
41 import java.awt.event.MouseEvent;
42 import org.jetbrains.annotations.NotNull;
43 import org.jetbrains.annotations.Nullable;
147 super.paintComponent(g);
148 g.setColor(
new Color(0, 0, 0, 0.0f));
149 g.fillRect(0, 0, getWidth(), getHeight());
153 g.drawImage(
image, 0, 0,
null);
161 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
168 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
182 result.width +=
image.getWidth(
this);
189 super.mouseClicked(e);
195 final int b = e.getButton();
197 case MouseEvent.BUTTON1:
202 case MouseEvent.BUTTON2:
205 case MouseEvent.BUTTON3:
229 return index >= -distance;
268 if (this.index ==
index) {
Represents a response line from the metaserver.
void tooltipChanged()
Must be called whenever the tooltip may have changed.
void setChanged()
Records that the contents have changed and must be repainted.
String format(@NotNull final String format)
Returns a formatted string using the given format.
static Dimension getTextDimension(@NotNull final String text, @NotNull final FontMetrics fontMetrics)
Returns the extents of a string when rendered in a given Font on this component.
A GUIElement that can be set to active or inactive.
boolean isActive()
Returns whether a GUI element is active.
Utility class for Gui related functions.
final GuiFactory guiFactory
The global GuiFactory instance.
TooltipText newTooltipText(@Nullable final String tooltipText)
Creates a TooltipText instance relative to this instance.
final GUIElementListener elementListener
The GUIElementListener to notify.
Information for displaying tooltips.
Factory for creating Gui instances.
final String name
The name of this element.
final TooltipManager tooltipManager
The TooltipManager to update.
Interface for listeners on metaserver entry related events.
void setActive(final boolean active)
Sets the active state of a GUI element.
Listener for GUIElement related events.