Crossfire JXClient, Trunk
|
Public Member Functions | |
void | attach (@NotNull TooltipManagerImpl tooltipManager) |
void | detach () |
CommandList | getCommandList (@NotNull String name) throws JXCSkinException |
Collection< String > | getCommandListNames () |
KeyBindings | getDefaultKeyBindings () |
Gui | getDialog (@NotNull final String name) throws JXCSkinException |
Gui | getDialogBook (int bookNo) |
Gui | getDialogConnect () |
Gui | getDialogDisconnect () |
Gui | getDialogKeyBind () |
Gui | getDialogQuery () |
Gui | getDialogQuit () |
Gui | getMainInterface () |
Resolution | getMaxResolution () |
Gui | getMetaInterface () |
Resolution | getMinResolution () |
String | getSkinName () |
Gui | getStartInterface () |
AbstractLabel | getTooltipLabel () |
Iterator< Gui > | iterator () |
void | setScreenSize (final int screenWidth, final int screenHeight) |
Defines a JXClient skin consisting of a main Gui and zero or more dialog Guis.
Definition at line 42 of file JXCSkin.java.
void com.realtime.crossfire.jxclient.skin.skin.JXCSkin.attach | ( | @NotNull TooltipManagerImpl | tooltipManager | ) |
Attaches this skin to a gui manager.
tooltipManager | the tooltip manager to attach to |
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
void com.realtime.crossfire.jxclient.skin.skin.JXCSkin.detach | ( | ) |
Frees all allocated resources.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().
CommandList com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getCommandList | ( | @NotNull String | name | ) | throws JXCSkinException |
Returns a named command list.
name | the name of the command list |
JXCSkinException | if the command list does not exist |
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.getCommandList().
Collection<String> com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getCommandListNames | ( | ) |
Returns the names of all named command lists.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.getCommandListNames().
KeyBindings com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDefaultKeyBindings | ( | ) |
Returns the default key bindings for this skin.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialog | ( | @NotNull final String | name | ) | throws JXCSkinException |
Returns a dialog by name.
name | the dialog's name |
JXCSkinException | if the dialog does not exist |
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeDialogByName(), and com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogBook | ( | int | bookNo | ) |
Returns the popup dialog for readables.
bookNo | the book ID |
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), and com.realtime.crossfire.jxclient.window.GuiManager.escPressed().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogConnect | ( | ) |
Returns the "connection in progress" dialog. It is opened while the connection establishment is in progress.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogDisconnect | ( | ) |
Returns the "disconnect from server?" dialog. It is opened when the user presses ESCAPE.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogKeyBind | ( | ) |
Returns the key bindings dialog.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogQuery | ( | ) |
Returns the dialog for query text input.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogQuit | ( | ) |
Returns the "really quit?" dialog. It is opened when the user presses ESCAPE.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMainInterface | ( | ) |
Returns the main window.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.showGUIMain().
Resolution com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMaxResolution | ( | ) |
Returns the maximal resolution of this skin.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.main.SkinLoader.loadSkin().
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMetaInterface | ( | ) |
Returns the server selection window.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.showGUIMeta().
Resolution com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMinResolution | ( | ) |
Returns the minimal resolution of this skin.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.main.SkinLoader.loadSkin().
String com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getSkinName | ( | ) |
Returns a short name for the skin. It is used to construct path or file names.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Gui com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getStartInterface | ( | ) |
Returns the start window.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.showGUIStart().
AbstractLabel com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getTooltipLabel | ( | ) |
Returns the AbstractLabel that is used to display tooltips.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
Iterator<Gui> com.realtime.crossfire.jxclient.skin.skin.JXCSkin.iterator | ( | ) |
Returns all gui instances of this skin. The instances have no defined order.
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
void com.realtime.crossfire.jxclient.skin.skin.JXCSkin.setScreenSize | ( | final int | screenWidth, |
final int | screenHeight | ||
) |
Updates the skin's gui elements to a screen size.
screenWidth | the new screen width |
screenHeight | the new screen height |
Implemented in com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.updateWindowSize().