com.realtime.crossfire.jxclient.gui.gui
Class GuiFactory

java.lang.Object
  extended by com.realtime.crossfire.jxclient.gui.gui.GuiFactory

public class GuiFactory
extends java.lang.Object

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

commandCallback

@NotNull
private final CommandCallback commandCallback
The CommandCallback to use.


commands

@NotNull
private final Commands commands
The commands instance for executing commands.


macros

@NotNull
private final Macros macros
The Macros instance to use.


mouseTracker

@Nullable
private final MouseTracker mouseTracker
The mouse tracker when in debug GUI mode or null otherwise.

Constructor Detail

GuiFactory

public GuiFactory(@Nullable
                  MouseTracker mouseTracker,
                  @NotNull
                  Commands commands,
                  @NotNull
                  CommandCallback commandCallback,
                  @NotNull
                  Macros macros)
Creates a new instance.

Parameters:
mouseTracker - the mouse tracker when in debug GUI mode or null otherwise
commands - the commands instance for executing commands
commandCallback - the command callback to use
macros - the macros instance to use
Method Detail

newGui

@NotNull
public Gui newGui()
Creates a new Gui instance.

Returns:
the new gui instance