Crossfire JXClient, Trunk
|
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< Gui > | guis = new ArrayList<>() |
Factory for creating Gui instances.
Definition at line 41 of file GuiFactory.java.
com.realtime.crossfire.jxclient.skin.skin.GuiFactory.GuiFactory | ( | @NotNull final GUICommandFactory | guiCommandFactory | ) |
Creates a new instance.
guiCommandFactory | the gui command factory for creating commands |
Definition at line 58 of file GuiFactory.java.
References com.realtime.crossfire.jxclient.skin.skin.GuiFactory.guiCommandFactory.
int com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementX | ( | @NotNull final AbstractGUIElement | element | ) |
Returns an element's absolute screen coordinate.
element | the element |
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().
int com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementY | ( | @NotNull final AbstractGUIElement | element | ) |
Returns an element's absolute screen coordinate.
element | the element |
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().
Gui com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui | ( | @NotNull final AbstractGUIElement | element | ) |
Returns the Gui an element is part of.
element | the element |
Definition at line 110 of file GuiFactory.java.
References com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGuiFromComponent().
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountLinkCharacterCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.AccountLoginCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.AccountPasswordCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementX(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getElementY(), com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.getTooltip(), com.realtime.crossfire.jxclient.main.SkinLoader.loadSkin(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.mousePressed(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.mousePressed(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.moveTo(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.moveTo(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.newTooltipText().
|
private |
Returns the Gui instance for a Component.
component | the component |
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().
Gui com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui | ( | @NotNull final String | name | ) |
Creates a new Gui instance.
name | the name of this GUI |
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().
|
private |
The GUICommandFactory for creating commands.
Definition at line 46 of file GuiFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.skin.GuiFactory.GuiFactory(), and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui().
|
private |
All existing Gui instances.
Definition at line 52 of file GuiFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGuiFromComponent(), and com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui().