java.lang.Object com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader
public class JXCSkinLoader
Parser for loading JXCSkin
instances from JXCSkinSources
.
Field Summary | |
---|---|
private CheckBoxFactory |
checkBoxFactory
The checkbox factory. |
private CommandParser |
commandParser
The CommandParser for parsing commands. |
private ItemPainter |
defaultItemPainter
The ItemPainter for default item parameters. |
private KeyBindings |
defaultKeyBindings
The default key bindings. |
private int |
defaultTileSize
The default tile size for the map view. |
private JXCSkinCache<java.awt.Font> |
definedFonts
All defined fonts. |
private JXCSkinCache<GUIElement> |
definedGUIElements
The defined GUIElement s. |
private DialogFactory |
dialogFactory
The dialog factory. |
private ExperienceTable |
experienceTable
The ExperienceTable to use. |
private FacesManager |
facesManager
The FacesManager instance to use. |
private FacesProviderFactory |
facesProviderFactory
The FacesProviderFactory instance for creating faces provider
instances. |
private FloorView |
floorView
The FloorView to use. |
private FontParser |
fontParser
The FontParser for parsing font specifications. |
private GaugeUpdaterParser |
gaugeUpdaterParser
The GaugeUpdaterParser for parsing gauge specifications. |
private GuiElementParser |
guiElementParser
The GuiElementParser for parsing gui element specifications. |
private ImageParser |
imageParser
The ImageParser for parsing image specifications. |
private ItemView |
inventoryView
The inventory ItemView to use. |
private ItemSet |
itemSet
The ItemSet instance to use. |
private CfMapUpdater |
mapUpdater
The CfMapUpdater instance to use. |
private OptionManager |
optionManager
The OptionManager instance to use. |
private SkillSet |
skillSet
The SkillSet instance to use. |
private DefaultJXCSkin |
skin
The JXCSkin being loaded. |
private SpellsManager |
spellsManager
The SpellsManager instance to use. |
private Stats |
stats
The Stats instance to use. |
private TextButtonFactory |
textButtonFactory
The text button factory. |
Constructor Summary | |
---|---|
JXCSkinLoader(ItemSet itemSet,
ItemView inventoryView,
FloorView floorView,
SpellsManager spellsManager,
FacesManager facesManager,
Stats stats,
CfMapUpdater mapUpdater,
KeyBindings defaultKeyBindings,
OptionManager optionManager,
ExperienceTable experienceTable,
SkillSet skillSet,
int defaultTileSize)
Creates a new instance. |
Method Summary | |
---|---|
private void |
addCommand(java.lang.String listName,
Args args,
GUIElement element,
java.lang.String command,
GuiStateManager guiStateManager,
Commands commands,
java.io.LineNumberReader lnr,
CommandQueue commandQueue,
CrossfireServerConnection crossfireServerConnection,
CommandCallback commandCallback,
Macros macros)
Parses and builds command arguments. |
private void |
insertGuiElement(GUIElement guiElement)
Adds a new GUIElement to this skin. |
JXCSkin |
load(JXCSkinSource skinSource,
CrossfireServerConnection crossfireServerConnection,
GuiStateManager guiStateManager,
TooltipManager tooltipManager,
JXCWindowRenderer windowRenderer,
GUIElementListener elementListener,
MetaserverModel metaserverModel,
CharacterModel characterModel,
CommandQueue commandQueue,
Shortcuts shortcuts,
Commands commands,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
GuiFactory guiFactory)
Loads the skin from its external representation. |
private void |
load(JXCSkinSource skinSource,
java.lang.String dialogName,
CrossfireServerConnection server,
GuiStateManager guiStateManager,
TooltipManager tooltipManager,
JXCWindowRenderer windowRenderer,
GUIElementListener elementListener,
MetaserverModel metaserverModel,
CharacterModel characterModel,
CommandQueue commandQueue,
Gui gui,
Shortcuts shortcuts,
Commands commands,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Loads a skin file and add the entries to a Gui instance. |
private void |
load(JXCSkinSource skinSource,
java.lang.String dialogName,
java.lang.String resourceName,
java.io.InputStream inputStream,
CrossfireServerConnection server,
GuiStateManager guiStateManager,
TooltipManager tooltipManager,
JXCWindowRenderer windowRenderer,
GUIElementListener elementListener,
MetaserverModel metaserverModel,
CharacterModel characterModel,
CommandQueue commandQueue,
Gui gui,
Shortcuts shortcuts,
Commands commands,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Loads a skin file and add the entries to a Gui instance. |
private GaugeUpdater |
newGaugeUpdater(java.lang.String name)
Creates a new GaugeUpdater instance from a string
representation. |
private void |
parseButton(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "button" command. |
private void |
parseCharacterList(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CharacterModel characterModel)
Parses a "character_list" command. |
private void |
parseCheckbox(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "checkbox" command. |
private void |
parseCommandList(Args args,
GuiStateManager guiStateManager,
java.io.LineNumberReader lnr,
Commands commands,
CommandQueue commandQueue,
CrossfireServerConnection server,
CommandCallback commandCallback,
Macros macros)
Parses a "commandlist" command. |
private void |
parseCommandListAdd(Args args,
GuiStateManager guiStateManager,
java.io.LineNumberReader lnr,
Commands commands,
CommandQueue commandQueue,
CrossfireServerConnection server,
CommandCallback commandCallback,
Macros macros)
Parses a "commandlist_add" command. |
private void |
parseCommandText(Args args,
CommandCallback commandCallback,
TooltipManager tooltipManager,
GUIElementListener elementListener,
Commands commands)
Parses a "command_text" command. |
private void |
parseDef(Args args,
java.io.LineNumberReader lnr)
Parses a "def" command. |
private void |
parseDialog(Args args,
TooltipManager tooltipManager,
JXCWindowRenderer windowRenderer,
GUIElementListener elementListener,
java.io.LineNumberReader lnr,
Gui gui,
java.lang.String dialogName)
Parses a "dialog" command. |
private static void |
parseDialogHide(Args args,
Gui gui)
Parses a "dialog_hide" command. |
private void |
parseDupGauge(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "dupgauge" command. |
private void |
parseDupTextGauge(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "duptextgauge" command. |
private void |
parseEvent(Args args,
GuiStateManager guiStateManager,
CrossfireServerConnection server)
Parses an "event" command. |
private static Extent |
parseExtent(Args args)
Creates an Extent from four parameters. |
private void |
parseFill(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "fill" command. |
private void |
parseFont(Args args)
Parses a "font" command. |
private void |
parseGauge(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "gauge" command. |
private void |
parseHideInput(Args args)
Parses a "hide_input" command. |
private void |
parseIgnore(Args args)
Parses an "ignore" command. |
private void |
parseItem(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandQueue commandQueue,
CrossfireServerConnection server,
Shortcuts shortcuts,
CurrentSpellManager currentSpellManager,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Parses an "item" command. |
private void |
parseKey(Args args,
Gui gui,
java.lang.String line)
Parses a "key" command. |
private void |
parseLabelFailure(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CrossfireServerConnection server)
Parses a "label_failure" command. |
private void |
parseLabelHtml(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "label_html" command. |
private void |
parseLabelMessage(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CrossfireServerConnection server,
JXCWindowRenderer windowRenderer)
Parses a "label_message" command. |
private void |
parseLabelMulti(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "label_multi" command. |
private void |
parseLabelQuery(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CrossfireServerConnection server)
Parses a "label_query" command. |
private void |
parseLabelSpell(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CurrentSpellManager currentSpellManager)
Parses a "label_spell" command. |
private void |
parseLabelStat(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "label_stat" command. |
private void |
parseLabelStat2(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "label_stat2" command. |
private void |
parseLabelText(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "label_text" command. |
private void |
parseList(Args args,
boolean inventoryList,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandQueue commandQueue,
CrossfireServerConnection server,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Parses an "inventory_list" or a "floor_list" command. |
private void |
parseLogColor(Args args)
Parses a "log_color" command. |
private void |
parseLogFilter(Args args)
Parses a "log_filter" command. |
private void |
parseLogLabel(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "log_label" command. |
private void |
parseLogMessage(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CrossfireServerConnection server)
Parses a "log_message" command. |
private void |
parseMap(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CrossfireServerConnection server)
Parses a "map" command. |
private void |
parseMetaList(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
MetaserverModel metaserverModel)
Parses a "meta_list" command. |
private void |
parseMinimap(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "minimap" command. |
private void |
parsePicture(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "picture" command. |
private void |
parseQueryText(Args args,
CrossfireServerConnection server,
CommandCallback commandCallback,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "query_text" command. |
private static Resolution |
parseResolution(java.lang.String text)
Parses a resolution specification. |
private void |
parseScrollbar(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "scrollbar" command. |
private static void |
parseSetAutoSize(Gui gui)
Parses a "set_auto_size" command. |
private void |
parseSetDefault(Args args)
Parses a "set_default" command. |
private void |
parseSetForcedActive(Args args,
Gui gui)
Parses a "set_forced_active" command. |
private void |
parseSetInvisible(Args args)
Parses a "set_invisible" command. |
private static void |
parseSetModal(Gui gui)
Parses a "set_modal" command. |
private void |
parseSetNumLookObjects(Args args)
Parses a "set_num_look_objects" command. |
private void |
parseSkinName(Args args)
Parses a "skin_name" command. |
private void |
parseText(Args args,
CommandCallback commandCallback,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "text" command. |
private void |
parseTextButton(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "textbutton" command. |
private void |
parseTextGauge(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener,
java.io.LineNumberReader lnr)
Parses a "textgauge" command. |
private void |
parseTooltip(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "tooltip" command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Nullable private CheckBoxFactory checkBoxFactory
null
until defined.
@NotNull private CommandParser commandParser
CommandParser
for parsing commands.
@Nullable private ItemPainter defaultItemPainter
ItemPainter
for default item parameters. Set to
null
until defined.
@NotNull private final KeyBindings defaultKeyBindings
private final int defaultTileSize
@NotNull private final JXCSkinCache<java.awt.Font> definedFonts
@NotNull private final JXCSkinCache<GUIElement> definedGUIElements
GUIElement
s.
@Nullable private DialogFactory dialogFactory
null
until defined.
@NotNull private final ExperienceTable experienceTable
ExperienceTable
to use.
@NotNull private final FacesManager facesManager
FacesManager
instance to use.
@NotNull private final FacesProviderFactory facesProviderFactory
FacesProviderFactory
instance for creating faces provider
instances.
@NotNull private final FloorView floorView
FloorView
to use.
@NotNull private FontParser fontParser
FontParser
for parsing font specifications.
@NotNull private GaugeUpdaterParser gaugeUpdaterParser
GaugeUpdaterParser
for parsing gauge specifications.
@NotNull private GuiElementParser guiElementParser
GuiElementParser
for parsing gui element specifications.
@NotNull private ImageParser imageParser
ImageParser
for parsing image specifications.
@NotNull private final ItemView inventoryView
ItemView
to use.
@NotNull private final ItemSet itemSet
ItemSet
instance to use.
@NotNull private final CfMapUpdater mapUpdater
CfMapUpdater
instance to use.
@NotNull private final OptionManager optionManager
OptionManager
instance to use.
@NotNull private final SkillSet skillSet
SkillSet
instance to use.
@NotNull private DefaultJXCSkin skin
JXCSkin
being loaded.
@NotNull private final SpellsManager spellsManager
SpellsManager
instance to use.
@NotNull private final Stats stats
Stats
instance to use.
@Nullable private TextButtonFactory textButtonFactory
null
until defined.
Constructor Detail |
---|
public JXCSkinLoader(@NotNull ItemSet itemSet, @NotNull ItemView inventoryView, @NotNull FloorView floorView, @NotNull SpellsManager spellsManager, @NotNull FacesManager facesManager, @NotNull Stats stats, @NotNull CfMapUpdater mapUpdater, @NotNull KeyBindings defaultKeyBindings, @NotNull OptionManager optionManager, @NotNull ExperienceTable experienceTable, @NotNull SkillSet skillSet, int defaultTileSize)
itemSet
- the item set instance to useinventoryView
- the inventory item view to usefloorView
- the floor view to usespellsManager
- the spells manager instance to usefacesManager
- the faces manager instance to usestats
- the stats instance to usemapUpdater
- the map updater instance to usedefaultKeyBindings
- the default key bindingsoptionManager
- the option manager to useexperienceTable
- the experience table to useskillSet
- the skill set to usedefaultTileSize
- the default tile size for the map viewMethod Detail |
---|
private void addCommand(@NotNull java.lang.String listName, @NotNull Args args, @Nullable GUIElement element, @NotNull java.lang.String command, @NotNull GuiStateManager guiStateManager, @NotNull Commands commands, @NotNull java.io.LineNumberReader lnr, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull CommandCallback commandCallback, @NotNull Macros macros) throws java.io.IOException, JXCSkinException
listName
- the command list name to add toargs
- the list of argumentselement
- the target elementcommand
- the command to parse the arguments ofguiStateManager
- the gui state manager instancecommands
- the commands instance for executing commandslnr
- the source to read more parameters fromcommandQueue
- the command queue for executing commandscrossfireServerConnection
- the server connection to usecommandCallback
- the command callback to usemacros
- the macros instance to use
java.io.IOException
- if a syntax error occurs
JXCSkinException
- if an element cannot be foundprivate void insertGuiElement(@NotNull GUIElement guiElement) throws JXCSkinException
GUIElement
to this skin.
guiElement
- the GUI element
JXCSkinException
- if the name is not unique@NotNull public JXCSkin load(@NotNull JXCSkinSource skinSource, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull GuiStateManager guiStateManager, @NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull MetaserverModel metaserverModel, @NotNull CharacterModel characterModel, @NotNull CommandQueue commandQueue, @NotNull Shortcuts shortcuts, @NotNull Commands commands, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull GuiFactory guiFactory) throws JXCSkinException
skinSource
- the source to load fromcrossfireServerConnection
- the server connection to attach toguiStateManager
- the gui state manager instancetooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer to add toelementListener
- the element listener to notifymetaserverModel
- the metaserver mode to usecharacterModel
- the character model to usecommandQueue
- the command queue to useshortcuts
- the shortcuts to usecommands
- the commands instance to usecurrentSpellManager
- the current spell manager to usecommandCallback
- the command callback to usemacros
- the macros instance to useguiFactory
- the gui factory for creating gui elements
JXCSkinException
- if the skin cannot be loadedprivate void load(@NotNull JXCSkinSource skinSource, @NotNull java.lang.String dialogName, @NotNull CrossfireServerConnection server, @NotNull GuiStateManager guiStateManager, @NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull MetaserverModel metaserverModel, @NotNull CharacterModel characterModel, @NotNull CommandQueue commandQueue, @Nullable Gui gui, @NotNull Shortcuts shortcuts, @NotNull Commands commands, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace) throws JXCSkinException
Gui
instance.
skinSource
- th source to load fromdialogName
- the key to identify this dialogserver
- the server connection to monitorguiStateManager
- the gui state manager instancetooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer to add toelementListener
- the element listener to notifymetaserverModel
- the metaserver model to usecharacterModel
- the character model to usecommandQueue
- the command queue for sending commandsgui
- the Gui representing the skin fileshortcuts
- the shortcuts instancecommands
- the commands instance for executing commandscurrentSpellManager
- the current spell manager to usecommandCallback
- the command callback to usemacros
- the macros instance to usenextGroupFace
- the image for "next group of items"prevGroupFace
- the image for "prev group of items"
JXCSkinException
- if the file cannot be loadedprivate void load(@NotNull JXCSkinSource skinSource, @NotNull java.lang.String dialogName, @NotNull java.lang.String resourceName, @NotNull java.io.InputStream inputStream, @NotNull CrossfireServerConnection server, @NotNull GuiStateManager guiStateManager, @NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull MetaserverModel metaserverModel, @NotNull CharacterModel characterModel, @NotNull CommandQueue commandQueue, @Nullable Gui gui, @NotNull Shortcuts shortcuts, @NotNull Commands commands, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace) throws JXCSkinException
Gui
instance.
skinSource
- the source to load fromdialogName
- the key to identify this dialogresourceName
- the name of the skin resource; used to construct
error messagesinputStream
- the input stream to load fromserver
- the server connection to monitorguiStateManager
- the gui state manager instancetooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer to add toelementListener
- the element listener to notifymetaserverModel
- the metaserver model to usecharacterModel
- the character model to usecommandQueue
- the command queue for sending commandsgui
- the Gui representing the skin fileshortcuts
- the shortcuts instancecommands
- the commands instance for executing commandscurrentSpellManager
- the current spell manager to usecommandCallback
- the command callback to usemacros
- the macros instance to usenextGroupFace
- the image for "next group of items"prevGroupFace
- the image for "prev group of items"
JXCSkinException
- if the file cannot be loaded@NotNull private GaugeUpdater newGaugeUpdater(@NotNull java.lang.String name) throws java.io.IOException
GaugeUpdater
instance from a string
representation.
name
- the gauge updater value to parse
java.io.IOException
- if the gauge updater value does not existprivate void parseButton(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseCharacterList(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CharacterModel characterModel) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycharacterModel
- the character model to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseCheckbox(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseCommandList(@NotNull Args args, @NotNull GuiStateManager guiStateManager, @NotNull java.io.LineNumberReader lnr, @NotNull Commands commands, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection server, @NotNull CommandCallback commandCallback, @NotNull Macros macros) throws java.io.IOException, JXCSkinException
args
- the command argumentsguiStateManager
- the gui state manager instancelnr
- the line number reader for reading more linescommands
- the commands to add tocommandQueue
- the command queue to useserver
- the server to usecommandCallback
- the command callback to usemacros
- the macros instance to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseCommandListAdd(@NotNull Args args, @NotNull GuiStateManager guiStateManager, @NotNull java.io.LineNumberReader lnr, @NotNull Commands commands, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection server, @NotNull CommandCallback commandCallback, @NotNull Macros macros) throws java.io.IOException, JXCSkinException
args
- the command argumentsguiStateManager
- the gui state manager instancelnr
- the line number reader for reading more linescommands
- the commands to add tocommandQueue
- the command queue to useserver
- the server to usecommandCallback
- the command callback to usemacros
- the macros instance to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseCommandText(@NotNull Args args, @NotNull CommandCallback commandCallback, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull Commands commands) throws java.io.IOException, JXCSkinException
args
- the command argumentscommandCallback
- the command callback to usetooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycommands
- the commands to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseDef(@NotNull Args args, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentslnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseDialog(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr, @NotNull Gui gui, @NotNull java.lang.String dialogName) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer the dialog belongs toelementListener
- the element listener to notifylnr
- the line number reader for reading more linesgui
- the gui instance to add todialogName
- the dialog name
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate static void parseDialogHide(@NotNull Args args, @NotNull Gui gui) throws java.io.IOException
args
- the command argumentsgui
- the gui instance to use
java.io.IOException
- if the command cannot be parsedprivate void parseDupGauge(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseDupTextGauge(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseEvent(@NotNull Args args, @NotNull GuiStateManager guiStateManager, @NotNull CrossfireServerConnection server) throws java.io.IOException, JXCSkinException
args
- the command argumentsguiStateManager
- the gui state manager instanceserver
- the server to monitor
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsed@NotNull private static Extent parseExtent(Args args) throws java.io.IOException
Extent
from four parameters.
args
- the parameters
java.io.IOException
- if the extent cannot be parsedprivate void parseFill(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseFont(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseGauge(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseHideInput(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseIgnore(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseItem(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection server, @NotNull Shortcuts shortcuts, @NotNull CurrentSpellManager currentSpellManager, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycommandQueue
- the command queue to useserver
- the server to useshortcuts
- the shortcuts to usecurrentSpellManager
- the current spell manager to usenextGroupFace
- the image for "next group of items"prevGroupFace
- the image for "prev group of items"
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseKey(@NotNull Args args, @Nullable Gui gui, @NotNull java.lang.String line) throws java.io.IOException
args
- the command argumentsgui
- the gui to add toline
- the unparsed command line
java.io.IOException
- if the command cannot be parsedprivate void parseLabelFailure(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server instance to monitor
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelHtml(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelMessage(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server, @NotNull JXCWindowRenderer windowRenderer) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server instance to monitorwindowRenderer
- the window renderer to create the element for
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelMulti(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelQuery(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server instance to monitor
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelSpell(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CurrentSpellManager currentSpellManager) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycurrentSpellManager
- the current spell manager to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelStat(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelStat2(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLabelText(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseList(@NotNull Args args, boolean inventoryList, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection server, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace) throws java.io.IOException, JXCSkinException
args
- the command argumentsinventoryList
- true
for "inventory_list" command,
false
for "floor_list" commandtooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycommandQueue
- the command queue to useserver
- the server to usenextGroupFace
- the image for "next group of items"prevGroupFace
- the image for "prev group of items"
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLogColor(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLogFilter(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLogLabel(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseLogMessage(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseMap(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server to monitor
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseMetaList(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull MetaserverModel metaserverModel) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifymetaserverModel
- the metaserver model to use
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseMinimap(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parsePicture(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseQueryText(@NotNull Args args, @NotNull CrossfireServerConnection server, @NotNull CommandCallback commandCallback, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentsserver
- the crossfire server connection for sending reply commandscommandCallback
- the command callback to usetooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsed@NotNull private static Resolution parseResolution(@NotNull java.lang.String text) throws java.io.IOException
text
- the resolution specification
java.io.IOException
- if the resolution specification cannot be parsedprivate void parseScrollbar(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate static void parseSetAutoSize(@NotNull Gui gui)
gui
- the gui to modifyprivate void parseSetDefault(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseSetForcedActive(@NotNull Args args, @NotNull Gui gui) throws java.io.IOException, JXCSkinException
args
- the command argumentsgui
- the gui to modify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseSetInvisible(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command arguments
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate static void parseSetModal(@NotNull Gui gui)
gui
- the gui to modifyprivate void parseSetNumLookObjects(@NotNull Args args) throws java.io.IOException
args
- the command arguments
java.io.IOException
- if the command cannot be parsedprivate void parseSkinName(@NotNull Args args) throws java.io.IOException
args
- the command arguments
java.io.IOException
- if the command cannot be parsedprivate void parseText(@NotNull Args args, @NotNull CommandCallback commandCallback, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentscommandCallback
- the command callback to usetooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseTextButton(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseTextGauge(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.io.LineNumberReader lnr) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifylnr
- the line number reader for reading more lines
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsedprivate void parseTooltip(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notify
java.io.IOException
- if the command cannot be parsed
JXCSkinException
- if the command cannot be parsed