Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.misc.GUIFill Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.misc.GUIFill:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.misc.GUIFill:
Collaboration graph

Public Member Functions

TooltipText getTooltip ()
 
 GUIFill (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Color color, final float alpha, @NotNull final GuiFactory guiFactory)
 
void notifyOpen ()
 
void paintComponent (@NotNull final Graphics g)
 
- 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 mouseClicked (@NotNull final MouseEvent e)
 
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
 

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 ()
 

Detailed Description

A GUIElement that fills an area with a given color.

Author
Andreas Kirschbaum

Definition at line 41 of file GUIFill.java.

Constructor & Destructor Documentation

◆ GUIFill()

com.realtime.crossfire.jxclient.gui.misc.GUIFill.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.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe element listener to notify
namethe name of this element
colorthe color to paint
alphathe transparency value
guiFactorythe global GUI factory instance

Definition at line 63 of file GUIFill.java.

References com.realtime.crossfire.jxclient.gui.misc.GUIFill.color, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.

Member Function Documentation

◆ getTooltip()

TooltipText com.realtime.crossfire.jxclient.gui.misc.GUIFill.getTooltip ( )

Returns the current tooltip text.

Returns
the tooltip text or
null
to not show a tooltip

Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.

Definition at line 82 of file GUIFill.java.

◆ notifyOpen()

void com.realtime.crossfire.jxclient.gui.misc.GUIFill.notifyOpen ( )

Called each time the enclosing dialog is opened (or raised).

Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.

Definition at line 77 of file GUIFill.java.

◆ paintComponent()

void com.realtime.crossfire.jxclient.gui.misc.GUIFill.paintComponent ( @NotNull final Graphics  g)

Member Data Documentation

◆ color

final Color com.realtime.crossfire.jxclient.gui.misc.GUIFill.color
private

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.misc.GUIFill.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 46 of file GUIFill.java.


The documentation for this class was generated from the following file: