|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MinuetoWindow
Interface describing the minimum functionality provided by all implementation of Minueto.
MinuetoBaseWindow| Method Summary | |
|---|---|
void |
close()
Close the window and free any ressource still in use by the window. |
double |
getFrameRate()
Returns the number of frame renders per second. |
int |
getPositionX()
Returns the top-left X screen location of the MinuetoWindow drawing surface |
int |
getPositionY()
Returns the top-left Y screen location of the MinuetoWindow drawing surface |
boolean |
isClosed()
Returns if the MinuetoWindow is was closed. |
boolean |
isVisible()
Returns if the MinuetoWindow is visible or not. |
void |
registerFocusHandler(MinuetoFocusHandler handler,
MinuetoEventQueue queue)
Assign a focus handler to the MinuetoWindow to process
focus events. |
void |
registerKeyboardHandler(MinuetoKeyboardHandler handler,
MinuetoEventQueue queue)
Assign a keyboard handler to the MinuetoWindow to process
keyboard input. |
void |
registerMouseHandler(MinuetoMouseHandler handler,
MinuetoEventQueue queue)
Assign a mouse handler to the MinuetoWindow to process
mouse input. |
void |
registerMouseWheelHandler(MinuetoMouseWheelHandler handler,
MinuetoEventQueue queue)
Assign a mousewheel handler to the MinuetoWindow to process
mouse wheel input. |
void |
registerWindowHandler(MinuetoWindowHandler handler,
MinuetoEventQueue queue)
Assign a window handler to the MinuetoWindow to process
window input. |
void |
render()
Draws the content of the backbuffer onto the window. |
void |
setCursorVisible(boolean value)
Shows or hides the mouse cursor. |
void |
setMaxFrameRate(double value)
Caps the number of frames which can be rendered (display) per second. |
void |
setTitle(java.lang.String title)
Change the title of the window. |
void |
setVisible(boolean value)
Shows or hides the MinuetoWindow. |
void |
unregisterFocusHandler(MinuetoFocusHandler handler,
MinuetoEventQueue queue)
Removes a focus handler from the MinuetoWindow. |
void |
unregisterKeyboardHandler(MinuetoKeyboardHandler handler,
MinuetoEventQueue queue)
Removes a keyboard handler from the MinuetoWindow. |
void |
unregisterMouseHandler(MinuetoMouseHandler handler,
MinuetoEventQueue queue)
Removes a mouse handler from the MinuetoWindow. |
void |
unregisterMouseWheelHandler(MinuetoMouseWheelHandler handler,
MinuetoEventQueue queue)
Removes a mouse wheel handler from the MinuetoWindow. |
void |
unregisterWindowHandler(MinuetoWindowHandler handler,
MinuetoEventQueue queue)
Removes a window handler from the MinuetoWindow. |
| Methods inherited from interface org.minueto.image.MinuetoDrawingSurface |
|---|
clear, clear, draw, drawLine, getHeight, getWidth, save, setPixel |
| Method Detail |
|---|
void render()
MinuetoWindowInvalidStateException - if this window is
hidden (invisible) or has been closed.int getPositionX()
int denoting the x position of the drawing surfaceint getPositionY()
int denoting the y position of the drawing surfacedouble getFrameRate()
int denoting the number of frames drawn per second.void setMaxFrameRate(double value)
value - double denoting the desired number of frames to
be displayed per second.
void registerKeyboardHandler(MinuetoKeyboardHandler handler,
MinuetoEventQueue queue)
MinuetoWindow to process
keyboard input. An unlimited number of keyboard handlers can be registered
with a window, but too many handlers may slow the application (because
of the large number of events produced).
handler - MinuetoKeyboardHandler to register with the
MinuetoEventQueue.queue - MinuetoEventQueue that will store events..
void registerMouseHandler(MinuetoMouseHandler handler,
MinuetoEventQueue queue)
MinuetoWindow to process
mouse input. An unlimited number of mouse handlers can be registered
with a window, but too many handlers may slow the application (because
of the large number of events produced).
handler - MinuetoMouseHandler to register with the
MinuetoWindow.queue - MinuetoEventQueue that will store events.
void registerWindowHandler(MinuetoWindowHandler handler,
MinuetoEventQueue queue)
MinuetoWindow to process
window input. An unlimited number of window handlers can be registered
with a window, but too many handlers may slow the application (because
of the large number of events produced).
handler - MinuetoWindowHandler to register with the
MinuetoWindow.queue - MinuetoEventQueue that will store events.
void registerFocusHandler(MinuetoFocusHandler handler,
MinuetoEventQueue queue)
MinuetoWindow to process
focus events. An unlimited number of window handlers can be registered
with a window, but too many handlers may slow the application (because
of the large number of events produced).
handler - MinuetoFocusHandler to register with the
MinuetoWindow.queue - MinuetoEventQueue that will store events.
void registerMouseWheelHandler(MinuetoMouseWheelHandler handler,
MinuetoEventQueue queue)
MinuetoWindow to process
mouse wheel input. An unlimited number of mouse wheel handlers can be registered
with a window, but too many handlers may slow the application (because
of the large number of events produced).
handler - MinuetoMouseWheelHandler to register with the
MinuetoWindow.queue - MinuetoEventQueue that will store events.
void unregisterKeyboardHandler(MinuetoKeyboardHandler handler,
MinuetoEventQueue queue)
MinuetoWindow. Note that
both the correct handler and queue must be given to unregister the handler.
handler - MinuetoKeyboardHandler to unregister with the
MinuetoWindow.queue - MinuetoEventQueue that stored the events.
void unregisterMouseHandler(MinuetoMouseHandler handler,
MinuetoEventQueue queue)
MinuetoWindow. Note that
both the correct handler and queue must be given to unregister the handler.
handler - MinuetoMouseHandler to unregister with the
MinuetoWindow.queue - MinuetoEventQueue that stored the events.
void unregisterWindowHandler(MinuetoWindowHandler handler,
MinuetoEventQueue queue)
MinuetoWindow. Note that
both the correct handler and queue must be given to unregister the handler.
handler - MinuetoWindowHandler to unregister with the
MinuetoWindow.queue - MinuetoEventQueue that stored the events.
void unregisterFocusHandler(MinuetoFocusHandler handler,
MinuetoEventQueue queue)
MinuetoWindow. Note that
both the correct handler and queue must be given to unregister the handler.
handler - MinuetoFocusHandler to unregister with the
MinuetoWindow.queue - MinuetoEventQueue that stored the events.
void unregisterMouseWheelHandler(MinuetoMouseWheelHandler handler,
MinuetoEventQueue queue)
MinuetoWindow. Note that
both the correct handler and queue must be given to unregister the handler.
handler - MinuetoMouseWheelHandler to unregister with the
MinuetoWindow.queue - MinuetoEventQueue that stored the events.void close()
MinuetoWindowInvalidStateException.
void setCursorVisible(boolean value)
value - boolean denoting if the window should be visible or not.
MinuetoWindowInvalidStateException - if this window is hidden
(invisible) or has been closed.void setTitle(java.lang.String title)
title - String identifying the desired title of the screen.
MinuetoWindowInvalidStateException - if this window is hidden
(invisible) or has been closed.void setVisible(boolean value)
value - boolean denoting if the window should be visible or not.
MinuetoWindowInvalidStateException - if this window is hidden
(invisible) or has been closed.boolean isVisible()
boolean if Window is visible or notboolean isClosed()
boolean if Window was closed or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||