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) {
TooltipText newTooltipText(@Nullable final String tooltipText)
static Dimension getTextDimension(@NotNull final String text, @NotNull final FontMetrics fontMetrics)
String format(@NotNull final String format)
final GUIElementListener elementListener
void setActive(final boolean active)
final GuiFactory guiFactory
final TooltipManager tooltipManager