public interface JXCSkin
Defines a JXClient skin consisting of a main Gui
and zero or more
dialog Gui
s.
Method Summary | |
---|---|
void |
attach(TooltipManager tooltipManager)
Attaches this skin to a gui manager. |
void |
detach()
Frees all allocated resources. |
CommandList |
getCommandList(java.lang.String name)
Returns a named command list. |
KeyBindings |
getDefaultKeyBindings()
Returns the default key bindings for this skin. |
Gui |
getDialog(java.lang.String name)
Returns a dialog by name. |
Gui |
getDialogBook(int bookNo)
Returns the popup dialog for readables. |
Gui |
getDialogConnect()
Returns the "connection in progress" dialog. |
Gui |
getDialogDisconnect()
Returns the "disconnect from server?" dialog. |
Gui |
getDialogKeyBind()
Returns the key bindings dialog. |
Gui |
getDialogQuery()
Returns the dialog for query text input. |
Gui |
getDialogQuit()
Returns the "really quit?" dialog. |
Gui |
getMainInterface()
Returns the main window. |
java.awt.Dimension |
getMapSize()
Returns the map size in squares. |
Resolution |
getMaxResolution()
Returns the maximal resolution of this skin. |
Gui |
getMetaInterface()
Returns the server selection window. |
Resolution |
getMinResolution()
Returns the minimal resolution of this skin. |
int |
getNumLookObjects()
The number of ground view objects to request from the server. |
java.lang.String |
getSkinName()
Returns a short name for the skin. |
Gui |
getStartInterface()
Returns the start window. |
AbstractLabel |
getTooltipLabel()
Returns the AbstractLabel that is used to display tooltips. |
boolean |
hasChangedDialog()
Returns whether the dialog state should be saved. |
java.util.Iterator<Gui> |
iterator()
Returns all gui instances of this skin. |
void |
setScreenSize(int screenWidth,
int screenHeight)
Updates the skin's gui elements to a screen size. |
Method Detail |
---|
void attach(@NotNull TooltipManager tooltipManager)
tooltipManager
- the tooltip manager to attach tovoid detach()
@NotNull CommandList getCommandList(@NotNull java.lang.String name) throws JXCSkinException
name
- the name of the command list
JXCSkinException
- if the command list does not exist@NotNull KeyBindings getDefaultKeyBindings()
@NotNull Gui getDialog(@NotNull java.lang.String name) throws JXCSkinException
name
- the dialog's name
JXCSkinException
- if the dialog does not exist@NotNull Gui getDialogBook(int bookNo)
bookNo
- the book ID
@Nullable Gui getDialogConnect()
null
if the dialog does not exist@Nullable Gui getDialogDisconnect()
null
if the dialog does not exist@NotNull Gui getDialogKeyBind()
@NotNull Gui getDialogQuery()
@Nullable Gui getDialogQuit()
null
if the dialog does not exist@NotNull Gui getMainInterface()
@NotNull java.awt.Dimension getMapSize()
@NotNull Resolution getMaxResolution()
@NotNull Gui getMetaInterface()
@NotNull Resolution getMinResolution()
int getNumLookObjects()
@NotNull java.lang.String getSkinName()
@NotNull Gui getStartInterface()
@Nullable AbstractLabel getTooltipLabel()
AbstractLabel
that is used to display tooltips.
null
if tooltips are disabledboolean hasChangedDialog()
@NotNull java.util.Iterator<Gui> iterator()
iterator
in interface java.lang.Iterable<Gui>
void setScreenSize(int screenWidth, int screenHeight)
screenWidth
- the new screen widthscreenHeight
- the new screen height