Package games.stendhal.client.gui
Interface ManagedWindow
- All Known Implementing Classes:
ImageViewWindow,InternalManagedWindow,SlotWindow,Spells
public interface ManagedWindow
A managed window.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the managed window name.intgetX()Get X coordinate of the window.intgetY()Get Y coordinate of the window.booleanDetermine if the window is minimized.booleanDetermine if the window is visible.booleanmoveTo(int x, int y) Move to a location.voidsetMinimized(boolean minimized) Set the window as minimized.voidsetVisible(boolean visible) Set the window as visible (or hidden).
-
Method Details
-
getName
String getName()Get the managed window name.- Returns:
- the name
-
getX
int getX()Get X coordinate of the window.- Returns:
- A value suitable for passing to
moveTo().
-
getY
int getY()Get Y coordinate of the window.- Returns:
- A value suitable for passing to
moveTo().
-
isMinimized
boolean isMinimized()Determine if the window is minimized.- Returns:
trueif the window is minimized.
-
isVisible
boolean isVisible()Determine if the window is visible.- Returns:
trueif the window is visible.
-
moveTo
boolean moveTo(int x, int y) Move to a location. This may be subject to internal representation, and should only use what was passed fromgetX()andgetY().- Parameters:
x- The X coordinate;y- The Y coordinate;- Returns:
trueif the move was allowed.
-
setMinimized
void setMinimized(boolean minimized) Set the window as minimized.- Parameters:
minimized- Whether the window should be minimized.
-
setVisible
void setVisible(boolean visible) Set the window as visible (or hidden).- Parameters:
visible- Whether the window should be visible.
-