 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.misc;
30 import java.awt.Dimension;
31 import java.awt.Graphics;
32 import java.awt.Image;
33 import java.awt.Transparency;
34 import java.awt.image.BufferedImage;
35 import org.jetbrains.annotations.NotNull;
36 import org.jetbrains.annotations.Nullable;
83 preferredSize =
new Dimension(preferredWidth, preferredHeight);
88 super.paintComponent(g);
89 g.drawImage(
image, 0, 0,
null);
94 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
101 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
108 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
void paintComponent(@NotNull final Graphics g)
Dimension getMaximumSize()
Abstract base class for GUI elements to be shown in Guis.
final GUIElementListener elementListener
The GUIElementListener to notify.
final Image image
The picture to paint.
final Dimension preferredSize
The preferred size of this component.
final String tooltipText
The tooltip text to show.
final GuiFactory guiFactory
The global GuiFactory instance.
TooltipText getTooltip()
Returns the current tooltip text.
TooltipText newTooltipText(@Nullable final String tooltipText)
Creates a TooltipText instance relative to this instance.
Information for displaying tooltips.
GUIPicture(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final BufferedImage image, final float alpha, final int preferredWidth, final int preferredHeight, @NotNull final GuiFactory guiFactory, @NotNull final String tooltipText)
Creates a new instance.
Factory for creating Gui instances.
final String name
The name of this element.
static final long serialVersionUID
The serial version UID.
A AbstractGUIElement that displays a picture.
final TooltipManager tooltipManager
The TooltipManager to update.
Dimension getMinimumSize()
Dimension getPreferredSize()
void notifyOpen()
Called each time the enclosing dialog is opened (or raised).
Listener for GUIElement related events.