com.realtime.crossfire.jxclient.main
Class SkinLoader

java.lang.Object
  extended by com.realtime.crossfire.jxclient.main.SkinLoader

public class SkinLoader
extends java.lang.Object

Loader for JXCSkins and attaching them to the client.


Field Summary
private  CharacterModel characterModel
          The CharacterModel instance for this window.
private  CommandCallback commandCallback
          The CommandCallback instance.
private  CommandQueue commandQueue
          The CommandQueue instance.
private  Commands commands
          The Commands instance.
private  CurrentSpellManager currentSpellManager
          The CurrentSpellManager instance for this window.
private  boolean debugGui
          Whether GUI elements should be highlighted.
private  GuiStateManager guiStateManager
          The GuiStateManager instance.
private  Macros macros
          The Macros instance.
private  MetaserverModel metaserverModel
          The MetaserverModel instance for this window.
private  MouseTracker mouseTracker
          The MouseTracker instance.
private  Resolution resolution
          The size of the client area.
private  CrossfireServerConnection server
          The CrossfireServerConnection to use.
private  Shortcuts shortcuts
          The Shortcuts instance.
private  JXCSkinLoader skinLoader
          The JXCSkinLoader instance.
private  TooltipManager tooltipManager
          The TooltipManager instance.
private  JXCWindowRenderer windowRenderer
          The JXCWindowRenderer for this window.
 
Constructor Summary
SkinLoader(boolean debugGui, MouseTracker mouseTracker, CommandCallback commandCallback, MetaserverModel metaserverModel, Resolution resolution, Macros macros, JXCWindowRenderer windowRenderer, CrossfireServerConnection server, GuiStateManager guiStateManager, TooltipManager tooltipManager, CommandQueue commandQueue, JXCSkinLoader skinLoader, Commands commands, Shortcuts shortcuts, CharacterModel characterModel)
          Creates a new instance.
 
Method Summary
 JXCSkin loadSkin(java.lang.String skinName)
          Loads a skin file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

characterModel

@NotNull
private final CharacterModel characterModel
The CharacterModel instance for this window.


commandCallback

@NotNull
private final CommandCallback commandCallback
The CommandCallback instance.


commandQueue

@NotNull
private final CommandQueue commandQueue
The CommandQueue instance.


commands

@NotNull
private final Commands commands
The Commands instance.


currentSpellManager

@NotNull
private final CurrentSpellManager currentSpellManager
The CurrentSpellManager instance for this window.


debugGui

private final boolean debugGui
Whether GUI elements should be highlighted.


guiStateManager

@NotNull
private final GuiStateManager guiStateManager
The GuiStateManager instance.


macros

@NotNull
private final Macros macros
The Macros instance.


metaserverModel

@NotNull
private final MetaserverModel metaserverModel
The MetaserverModel instance for this window.


mouseTracker

@NotNull
private final MouseTracker mouseTracker
The MouseTracker instance.


resolution

@Nullable
private final Resolution resolution
The size of the client area. Set to null for default.


server

@NotNull
private final CrossfireServerConnection server
The CrossfireServerConnection to use.


shortcuts

@NotNull
private final Shortcuts shortcuts
The Shortcuts instance.


skinLoader

@NotNull
private final JXCSkinLoader skinLoader
The JXCSkinLoader instance.


tooltipManager

@NotNull
private final TooltipManager tooltipManager
The TooltipManager instance.


windowRenderer

@NotNull
private final JXCWindowRenderer windowRenderer
The JXCWindowRenderer for this window.

Constructor Detail

SkinLoader

public SkinLoader(boolean debugGui,
                  @NotNull
                  MouseTracker mouseTracker,
                  @NotNull
                  CommandCallback commandCallback,
                  @NotNull
                  MetaserverModel metaserverModel,
                  @Nullable
                  Resolution resolution,
                  @NotNull
                  Macros macros,
                  @NotNull
                  JXCWindowRenderer windowRenderer,
                  @NotNull
                  CrossfireServerConnection server,
                  @NotNull
                  GuiStateManager guiStateManager,
                  @NotNull
                  TooltipManager tooltipManager,
                  @NotNull
                  CommandQueue commandQueue,
                  @NotNull
                  JXCSkinLoader skinLoader,
                  @NotNull
                  Commands commands,
                  @NotNull
                  Shortcuts shortcuts,
                  @NotNull
                  CharacterModel characterModel)
Creates a new instance.

Parameters:
debugGui - whether GUI elements should be highlighted
mouseTracker - the mouse tracker to use
commandCallback - the command callback to use
metaserverModel - the metaserver model to use
resolution - the size of the client area, null for default
macros - the macros instance
windowRenderer - the window renderer to use
server - the crossfire server connection to use
guiStateManager - the gui state manager to use
tooltipManager - the tooltip manager to use
commandQueue - the command queue to use
skinLoader - the skin loader instance
commands - the commands to use
shortcuts - the shortcuts to use
characterModel - the character model to use
Method Detail

loadSkin

@NotNull
public JXCSkin loadSkin(@NotNull
                                java.lang.String skinName)
                 throws JXCSkinException
Loads a skin file.

Parameters:
skinName - the skin file name
Returns:
the loaded skin
Throws:
JXCSkinException - if the skin file cannot be loaded