public class JXCSkinLoader
extends java.lang.Object
JXCSkin
instances from JXCSkinSources
.Modifier and Type | Class and Description |
---|---|
private static class |
JXCSkinLoader.ListType
|
Modifier and Type | Field and Description |
---|---|
private boolean |
avoidCopyArea
Whether map scrolling is done by copying pixel areas.
|
private CheckBoxFactory |
checkBoxFactory
The checkbox factory.
|
private CommandHistoryFactory |
commandHistoryFactory
The
CommandHistoryFactory to use. |
private CommandParser |
commandParser
The
CommandParser for parsing commands. |
private DarknessColors |
darknessColors
The
DarknessColors instance for converting darkness values into
colors. |
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<AbstractGUIElement> |
definedGUIElements
The defined
GUIElements . |
private static int |
DIALOG_BORDER_WIDTH
The border width of dialogs.
|
private DialogFactory |
dialogFactory
The dialog factory.
|
private static java.util.Comparator<GUIElement> |
ELEMENT_COMPARATOR
A
Comparator that compares GUIElement instances by
element name. |
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 GuiManager |
guiManager
The
GuiManager to use. |
private ImageParser |
imageParser
The
ImageParser for parsing image specifications. |
private ItemView |
inventoryView
The inventory
ItemView to use. |
private KeybindingsManager |
keybindingsManager
The
KeybindingsManager containing key bindings. |
private KnowledgeTypeView |
knowledgeTypeView |
private KnowledgeView |
knowledgeView |
private MapUpdaterState |
mapUpdaterState
The
MapUpdaterState instance to use. |
private Model |
model
The
Model instance to use. |
private OptionManager |
optionManager
The
OptionManager instance to use. |
private QuestsView |
questView
The
QuestsView to use. |
private DefaultJXCSkin |
skin
The
JXCSkin being loaded. |
private SpellSkillView |
spellSkillsView
The
SpellSkillView to use. |
private SpellsView |
spellView
The
SpellsView to use. |
private TextButtonFactory |
textButtonFactory
The text button factory.
|
Constructor and Description |
---|
JXCSkinLoader(Model model,
ItemView inventoryView,
FloorView floorView,
SpellsView spellView,
SpellSkillView spellSkillsView,
FacesManager facesManager,
MapUpdaterState mapUpdaterState,
KeyBindings defaultKeyBindings,
OptionManager optionManager,
int defaultTileSize,
KeybindingsManager keybindingsManager,
QuestsView questView,
CommandHistoryFactory commandHistoryFactory,
KnowledgeView knowledgeView,
KnowledgeTypeView knowledgeTypeView,
boolean avoidCopyArea,
GuiManager guiManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
addCommand(java.lang.String listName,
Args args,
AbstractGUIElement element,
java.lang.String command,
GuiStateManager guiStateManager,
CommandExecutor commandExecutor,
java.io.LineNumberReader lnr,
CommandQueue commandQueue,
CrossfireServerConnection crossfireServerConnection,
CommandCallback commandCallback,
Macros macros)
Parses and builds command arguments.
|
private java.awt.Component |
getUnreferencedElement(java.lang.String name,
java.util.Collection<GUIElement> unreferencedElements)
Returns an unreferenced GUI element by name.
|
private void |
insertGuiElement(AbstractGUIElement 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,
CommandExecutor commandExecutor,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
GuiFactory guiFactory,
SmoothFaces smoothFaces)
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,
CommandExecutor commandExecutor,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace,
SmoothFaces smoothFaces)
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,
CommandExecutor commandExecutor,
CurrentSpellManager currentSpellManager,
CommandCallback commandCallback,
Macros macros,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace,
SmoothFaces smoothFaces)
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 javax.swing.GroupLayout.Group |
parseBegin(Args beginArgs,
javax.swing.GroupLayout layout,
java.io.LineNumberReader lnr,
java.util.Collection<GUIElement> unreferencedElements)
Parses a "begin..end" block.
|
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 |
parseComboBox(Args args,
TooltipManager tooltipManager,
GUIElementListener elementListener)
Parses a "combobox" command.
|
private void |
parseCommandList(Args args,
GuiStateManager guiStateManager,
java.io.LineNumberReader lnr,
CommandExecutor commandExecutor,
CommandQueue commandQueue,
CrossfireServerConnection server,
CommandCallback commandCallback,
Macros macros)
Parses a "commandlist" command.
|
private void |
parseCommandListAdd(Args args,
GuiStateManager guiStateManager,
java.io.LineNumberReader lnr,
CommandExecutor commandExecutor,
CommandQueue commandQueue,
CrossfireServerConnection server,
CommandCallback commandCallback,
Macros macros)
Parses a "commandlist_add" command.
|
private void |
parseCommandText(Args args,
CommandCallback commandCallback,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandExecutor commandExecutor)
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 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 |
parseHorizontal(Args args,
java.awt.Container gui,
java.io.LineNumberReader lnr,
boolean isDialog)
Parses a "horizontal" 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 |
parseLinkSize(Args args,
java.awt.Container gui)
Parses a "link_size" command.
|
private void |
parseList(Args args,
JXCSkinLoader.ListType type,
TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandQueue commandQueue,
CrossfireServerConnection server,
CurrentSpellManager currentSpellManager,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Parses an "inventory_list", "floor_list", "spells_list" or "quests_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,
SmoothFaces smoothFaces)
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,
Args args)
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 |
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.
|
private void |
parseVertical(Args args,
java.awt.Container gui,
java.io.LineNumberReader lnr,
boolean isDialog)
Parses a "vertical" command.
|
private final boolean avoidCopyArea
@Nullable private CheckBoxFactory checkBoxFactory
null
until defined.@NotNull private final CommandHistoryFactory commandHistoryFactory
CommandHistoryFactory
to use.@NotNull private CommandParser commandParser
CommandParser
for parsing commands.@NotNull private final DarknessColors darknessColors
DarknessColors
instance for converting darkness values into
colors.@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<AbstractGUIElement> definedGUIElements
GUIElements
.private static final int DIALOG_BORDER_WIDTH
@Nullable private DialogFactory dialogFactory
null
until defined.@NotNull private static final java.util.Comparator<GUIElement> ELEMENT_COMPARATOR
Comparator
that compares GUIElement
instances by
element name.@NotNull private final FacesManager facesManager
FacesManager
instance to use.@NotNull private final FacesProviderFactory facesProviderFactory
FacesProviderFactory
instance for creating faces provider
instances.@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 final GuiManager guiManager
GuiManager
to use.@NotNull private ImageParser imageParser
ImageParser
for parsing image specifications.@NotNull private final KeybindingsManager keybindingsManager
KeybindingsManager
containing key bindings.@NotNull private final KnowledgeTypeView knowledgeTypeView
@NotNull private final KnowledgeView knowledgeView
@NotNull private final MapUpdaterState mapUpdaterState
MapUpdaterState
instance to use.@NotNull private final OptionManager optionManager
OptionManager
instance to use.@NotNull private final QuestsView questView
QuestsView
to use.@NotNull private DefaultJXCSkin skin
JXCSkin
being loaded.@NotNull private final SpellSkillView spellSkillsView
SpellSkillView
to use.@NotNull private final SpellsView spellView
SpellsView
to use.@Nullable private TextButtonFactory textButtonFactory
null
until defined.public JXCSkinLoader(@NotNull Model model, @NotNull ItemView inventoryView, @NotNull FloorView floorView, @NotNull SpellsView spellView, @NotNull SpellSkillView spellSkillsView, @NotNull FacesManager facesManager, @NotNull MapUpdaterState mapUpdaterState, @NotNull KeyBindings defaultKeyBindings, @NotNull OptionManager optionManager, int defaultTileSize, @NotNull KeybindingsManager keybindingsManager, @NotNull QuestsView questView, @NotNull CommandHistoryFactory commandHistoryFactory, @NotNull KnowledgeView knowledgeView, @NotNull KnowledgeTypeView knowledgeTypeView, boolean avoidCopyArea, @NotNull GuiManager guiManager)
model
- the model instance to useinventoryView
- the inventory item view to usefloorView
- the floor view to usespellView
- the spells view to usespellSkillsView
- the spell skills view to usefacesManager
- the faces manager instance to usemapUpdaterState
- the map updater state instance to usedefaultKeyBindings
- the default key bindingsoptionManager
- the option manager to usedefaultTileSize
- the default tile size for the map viewkeybindingsManager
- the keybindings manager to usequestView
- the quests view to usecommandHistoryFactory
- the command history factory to usknowledgeView
- the knowledge view to useknowledgeTypeView
- the knowledge type view to useavoidCopyArea
- whether map scrolling is done by copying pixel
areas; if unset, always repaint all map squaresguiManager
- the GUI Manager to useprivate void addCommand(@NotNull java.lang.String listName, @NotNull Args args, @Nullable AbstractGUIElement element, @NotNull java.lang.String command, @NotNull GuiStateManager guiStateManager, @NotNull CommandExecutor commandExecutor, @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 instancecommandExecutor
- the command executor 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 usejava.io.IOException
- if a syntax error occursJXCSkinException
- if an element cannot be found@Nullable private java.awt.Component getUnreferencedElement(@NotNull java.lang.String name, @NotNull java.util.Collection<GUIElement> unreferencedElements)
name
- the gui element's nameunreferencedElements
- the unreferenced gui elementsnull
private void insertGuiElement(@NotNull AbstractGUIElement guiElement) throws JXCSkinException
GUIElement
to this skin.guiElement
- the GUI elementJXCSkinException
- 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 CommandExecutor commandExecutor, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull GuiFactory guiFactory, @NotNull SmoothFaces smoothFaces) 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 usecommandExecutor
- the command executor for executing commandscurrentSpellManager
- the current spell manager to usecommandCallback
- the command callback to usemacros
- the macros instance to useguiFactory
- the gui factory for creating gui elementssmoothFaces
- the smooth facesJXCSkinException
- 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 CommandExecutor commandExecutor, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace, @NotNull SmoothFaces smoothFaces) 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 instancecommandExecutor
- the command executor 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"smoothFaces
- the smooth facesJXCSkinException
- 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 CommandExecutor commandExecutor, @NotNull CurrentSpellManager currentSpellManager, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace, @NotNull SmoothFaces smoothFaces) 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 instancecommandExecutor
- the command executor 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"smoothFaces
- the smooth facesJXCSkinException
- 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 parsejava.io.IOException
- if the gauge updater value does not exist@NotNull private javax.swing.GroupLayout.Group parseBegin(@NotNull Args beginArgs, @NotNull javax.swing.GroupLayout layout, @NotNull java.io.LineNumberReader lnr, @NotNull java.util.Collection<GUIElement> unreferencedElements) throws java.io.IOException, JXCSkinException
beginArgs
- the Args
containing the "begin" linelayout
- the layout for the current guilnr
- the line number read to read fromunreferencedElements
- the unreferenced gui elements; will be
updatedjava.io.IOException
- if the block cannot be parsedJXCSkinException
- if the block cannot be parsedprivate 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseComboBox(@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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseCommandList(@NotNull Args args, @NotNull GuiStateManager guiStateManager, @NotNull java.io.LineNumberReader lnr, @NotNull CommandExecutor commandExecutor, @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 linescommandExecutor
- the command executor for executing the commandscommandQueue
- the command queue to useserver
- the server to usecommandCallback
- the command callback to usemacros
- the macros instance to usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseCommandListAdd(@NotNull Args args, @NotNull GuiStateManager guiStateManager, @NotNull java.io.LineNumberReader lnr, @NotNull CommandExecutor commandExecutor, @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 linescommandExecutor
- the command executor for executing commandscommandQueue
- the command queue to useserver
- the server to usecommandCallback
- the command callback to usemacros
- the macros instance to usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseCommandText(@NotNull Args args, @NotNull CommandCallback commandCallback, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CommandExecutor commandExecutor) throws java.io.IOException, JXCSkinException
args
- the command argumentscommandCallback
- the command callback to usetooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycommandExecutor
- the command executor for executing commandsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 namejava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 usejava.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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 monitorjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseFont(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseHideInput(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseHorizontal(@NotNull Args args, @NotNull java.awt.Container gui, @NotNull java.io.LineNumberReader lnr, boolean isDialog) throws java.io.IOException, JXCSkinException
args
- the command argumentsgui
- the guilnr
- the line number reader to read more lines @throws IOException
if the command cannot be parsedisDialog
- whether a "dialog" command has been executedJXCSkinException
- if the command cannot be parsedjava.io.IOException
- if the command cannot be parsedprivate void parseIgnore(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 parsedJXCSkinException
- 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 command line to parsejava.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 monitorjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 forjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 monitorjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseLinkSize(@NotNull Args args, @NotNull java.awt.Container gui) throws java.io.IOException, JXCSkinException
args
- the command argumentsgui
- the guijava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseList(@NotNull Args args, JXCSkinLoader.ListType type, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CommandQueue commandQueue, @NotNull CrossfireServerConnection server, @NotNull CurrentSpellManager currentSpellManager, @NotNull java.awt.Image nextGroupFace, @NotNull java.awt.Image prevGroupFace) throws java.io.IOException, JXCSkinException
args
- the command argumentstype
- JXCSkinLoader.ListType
list type to createtooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifycommandQueue
- the command queue to useserver
- the server 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 parsedJXCSkinException
- if the command cannot be parsedprivate void parseLogColor(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseLogFilter(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseMap(@NotNull Args args, @NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull CrossfireServerConnection server, @NotNull SmoothFaces smoothFaces) throws java.io.IOException, JXCSkinException
args
- the command argumentstooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyserver
- the server to monitorsmoothFaces
- the smooth facesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 usejava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsed@NotNull private static Resolution parseResolution(@NotNull java.lang.String text) throws java.io.IOException
text
- the resolution specificationjava.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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate static void parseSetAutoSize(@NotNull Gui gui, @NotNull Args args) throws java.io.IOException
args
- the command argumentsgui
- the gui to modifyjava.io.IOException
- if the command cannot be parsedprivate void parseSetDefault(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 modifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseSetInvisible(@NotNull Args args) throws java.io.IOException, JXCSkinException
args
- the command argumentsjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate static void parseSetModal(@NotNull Gui gui)
gui
- the gui to modifyprivate void parseSkinName(@NotNull Args args) throws java.io.IOException
args
- the command argumentsjava.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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 linesjava.io.IOException
- if the command cannot be parsedJXCSkinException
- 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 notifyjava.io.IOException
- if the command cannot be parsedJXCSkinException
- if the command cannot be parsedprivate void parseVertical(@NotNull Args args, @NotNull java.awt.Container gui, @NotNull java.io.LineNumberReader lnr, boolean isDialog) throws java.io.IOException, JXCSkinException
args
- the command argumentsgui
- the guilnr
- the line number reader to read more lines @throws IOException
if the command cannot be parsedisDialog
- whether a "dialog" command has been executedJXCSkinException
- if the command cannot be parsedjava.io.IOException
- if the command cannot be parsed