public interface JXCSkin extends java.lang.Iterable<Gui>
Modifier and Type | Method and Description |
---|---|
void |
attach(@NotNull TooltipManagerImpl tooltipManager)
Attaches this skin to a gui manager.
|
void |
detach()
Frees all allocated resources.
|
@NotNull CommandList |
getCommandList(@NotNull java.lang.String name)
Returns a named command list.
|
@NotNull java.util.Collection<java.lang.String> |
getCommandListNames()
Returns the names of all named command lists.
|
@NotNull KeyBindings |
getDefaultKeyBindings()
Returns the default key bindings for this skin.
|
@NotNull Gui |
getDialog(@NotNull java.lang.String name)
Returns a dialog by name.
|
@NotNull Gui |
getDialogBook(int bookNo)
Returns the popup dialog for readables.
|
@Nullable Gui |
getDialogConnect()
Returns the "connection in progress" dialog.
|
@Nullable Gui |
getDialogDisconnect()
Returns the "disconnect from server?" dialog.
|
@NotNull Gui |
getDialogKeyBind()
Returns the key bindings dialog.
|
@NotNull Gui |
getDialogQuery()
Returns the dialog for query text input.
|
@Nullable Gui |
getDialogQuit()
Returns the "really quit?" dialog.
|
@NotNull Gui |
getMainInterface()
Returns the main window.
|
@NotNull Resolution |
getMaxResolution()
Returns the maximal resolution of this skin.
|
@NotNull Gui |
getMetaInterface()
Returns the server selection window.
|
@NotNull Resolution |
getMinResolution()
Returns the minimal resolution of this skin.
|
@NotNull java.lang.String |
getSkinName()
Returns a short name for the skin.
|
@NotNull Gui |
getStartInterface()
Returns the start window.
|
@Nullable AbstractLabel |
getTooltipLabel()
Returns the
AbstractLabel that is used to display tooltips. |
@NotNull 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.
|
@NotNull @NotNull java.lang.String getSkinName()
@NotNull @NotNull Resolution getMinResolution()
@NotNull @NotNull Resolution getMaxResolution()
@NotNull @NotNull java.util.Iterator<Gui> iterator()
iterator
in interface java.lang.Iterable<Gui>
@Nullable @Nullable Gui getDialogQuit()
null
if the dialog does not exist@Nullable @Nullable Gui getDialogDisconnect()
null
if the dialog does not exist@Nullable @Nullable Gui getDialogConnect()
null
if the dialog does not exist@NotNull @NotNull Gui getDialogKeyBind()
@NotNull @NotNull Gui getDialogQuery()
@NotNull @NotNull Gui getDialogBook(int bookNo)
bookNo
- the book ID@NotNull @NotNull Gui getMainInterface()
@NotNull @NotNull Gui getMetaInterface()
@NotNull @NotNull Gui getStartInterface()
@NotNull @NotNull Gui getDialog(@NotNull @NotNull java.lang.String name) throws JXCSkinException
name
- the dialog's nameJXCSkinException
- if the dialog does not exist@NotNull @NotNull CommandList getCommandList(@NotNull @NotNull java.lang.String name) throws JXCSkinException
name
- the name of the command listJXCSkinException
- if the command list does not exist@NotNull @NotNull java.util.Collection<java.lang.String> getCommandListNames()
@NotNull @NotNull KeyBindings getDefaultKeyBindings()
void attach(@NotNull @NotNull TooltipManagerImpl tooltipManager)
tooltipManager
- the tooltip manager to attach tovoid detach()
void setScreenSize(int screenWidth, int screenHeight)
screenWidth
- the new screen widthscreenHeight
- the new screen height@Nullable @Nullable AbstractLabel getTooltipLabel()
AbstractLabel
that is used to display tooltips.null
if tooltips are disabled