 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.misc;
31 import java.awt.Color;
32 import java.awt.Graphics;
33 import java.awt.Graphics2D;
34 import org.jetbrains.annotations.NotNull;
35 import org.jetbrains.annotations.Nullable;
70 super.paintComponent(g);
71 final Graphics2D g2 = (Graphics2D)g;
72 g2.setBackground(
color);
73 g2.clearRect(0, 0, getWidth(), getHeight());
GUIFill(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Color color, final float alpha, @NotNull final GuiFactory guiFactory)
Creates a new instance.
Abstract base class for GUI elements to be shown in Guis.
final GUIElementListener elementListener
The GUIElementListener to notify.
final Color color
The Color to paint.
Interface defining an abstract GUI element.
void paintComponent(@NotNull final Graphics g)
TooltipText getTooltip()
Returns the current tooltip text.
A GUIElement that fills an area with a given color.
final GuiFactory guiFactory
The global GuiFactory instance.
Information for displaying tooltips.
Factory for creating Gui instances.
final String name
The name of this element.
final TooltipManager tooltipManager
The TooltipManager to update.
static final long serialVersionUID
The serial version UID.
void notifyOpen()
Called each time the enclosing dialog is opened (or raised).
Listener for GUIElement related events.