Crossfire JXClient, Trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.skin.skin.GuiFactory Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.skin.skin.GuiFactory:
Collaboration graph

Public Member Functions

int getElementX (@NotNull final AbstractGUIElement element)
 
int getElementY (@NotNull final AbstractGUIElement element)
 
Gui getGui (@NotNull final AbstractGUIElement element)
 
 GuiFactory (@NotNull final GUICommandFactory guiCommandFactory)
 
Gui newGui (@NotNull final String name)
 

Private Member Functions

Gui getGuiFromComponent (@NotNull final Component component)
 

Private Attributes

final GUICommandFactory guiCommandFactory
 
final Collection< Guiguis = new ArrayList<>()
 

Detailed Description

Factory for creating Gui instances.

Author
Andreas Kirschbaum

Definition at line 41 of file GuiFactory.java.

Constructor & Destructor Documentation

◆ GuiFactory()

com.realtime.crossfire.jxclient.skin.skin.GuiFactory.GuiFactory ( @NotNull final GUICommandFactory  guiCommandFactory)

Creates a new instance.

Parameters
guiCommandFactorythe gui command factory for creating commands

Definition at line 58 of file GuiFactory.java.

References com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guiCommandFactory.

Member Function Documentation

◆ getElementX()

int com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementX ( @NotNull final AbstractGUIElement  element)

Returns an element's absolute screen coordinate.

Parameters
elementthe element
Returns
the element's absolute x coordinate

Definition at line 81 of file GuiFactory.java.

References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGuiFromComponent().

Referenced by com.realtime.crossfire.jxclient.gui.misc.MouseTracker.paintActiveComponent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElementY()

int com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementY ( @NotNull final AbstractGUIElement  element)

Returns an element's absolute screen coordinate.

Parameters
elementthe element
Returns
the element's absolute y coordinate

Definition at line 95 of file GuiFactory.java.

References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGuiFromComponent().

Referenced by com.realtime.crossfire.jxclient.gui.misc.MouseTracker.paintActiveComponent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGui()

Gui com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui ( @NotNull final AbstractGUIElement  element)

◆ getGuiFromComponent()

Gui com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGuiFromComponent ( @NotNull final Component  component)
private

Returns the Gui instance for a Component.

Parameters
componentthe component
Returns
the GUI instance or
null
if the component is not a GUI

Definition at line 126 of file GuiFactory.java.

References com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guis.

Referenced by com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementX(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementY(), and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui().

Here is the caller graph for this function:

◆ newGui()

Gui com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui ( @NotNull final String  name)

Creates a new Gui instance.

Parameters
namethe name of this GUI
Returns
the new gui instance

Definition at line 68 of file GuiFactory.java.

References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guiCommandFactory, and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guis.

Referenced by com.realtime.crossfire.jxclient.skin.skin.Dialogs.addDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ guiCommandFactory

final GUICommandFactory com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guiCommandFactory
private

◆ guis

final Collection<Gui> com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guis = new ArrayList<>()
private

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