java.lang.Object com.realtime.crossfire.jxclient.gui.gui.GuiFactory
public class GuiFactory
Factory for creating Gui
instances.
Field Summary | |
---|---|
private CommandCallback |
commandCallback
The CommandCallback to use. |
private Commands |
commands
The commands instance for executing commands. |
private Macros |
macros
The Macros instance to use. |
private MouseTracker |
mouseTracker
The mouse tracker when in debug GUI mode or null otherwise. |
Constructor Summary | |
---|---|
GuiFactory(MouseTracker mouseTracker,
Commands commands,
CommandCallback commandCallback,
Macros macros)
Creates a new instance. |
Method Summary | |
---|---|
Gui |
newGui()
Creates a new Gui instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CommandCallback commandCallback
CommandCallback
to use.
@NotNull private final Commands commands
@NotNull private final Macros macros
Macros
instance to use.
@Nullable private final MouseTracker mouseTracker
null
otherwise.
Constructor Detail |
---|
public GuiFactory(@Nullable MouseTracker mouseTracker, @NotNull Commands commands, @NotNull CommandCallback commandCallback, @NotNull Macros macros)
mouseTracker
- the mouse tracker when in debug GUI mode or
null
otherwisecommands
- the commands instance for executing commandscommandCallback
- the command callback to usemacros
- the macros instance to useMethod Detail |
---|
@NotNull public Gui newGui()
Gui
instance.