org.jagatoo.input.render
Interface InputSourceWindow


public interface InputSourceWindow

This is an abstraction of the link between the input system and the render canvas.


Method Summary
 Cursor getCursor()
           
 java.lang.Object getDrawable()
           
 int getHeight()
           
 InputDeviceFactory getInputDeviceFactory(InputSystem inputSystem)
           
 int getWidth()
           
 boolean receivesInputEvents()
           
 void refreshCursor(Mouse mouse)
          Refreshes the Cursor on this window.
 void setCursor(Cursor cursor)
          Sets the new Cursor for this Mouse.
 

Method Detail

getDrawable

java.lang.Object getDrawable()
Returns:
the object to draw on and to attach the cursor to.

getInputDeviceFactory

InputDeviceFactory getInputDeviceFactory(InputSystem inputSystem)
Parameters:
inputSystem -
Returns:
the DeviceFactory, that provides methods to retrieve InputDevices for the specified implementation.

receivesInputEvents

boolean receivesInputEvents()
Returns:
must return true, for the InputSystem to accept events from this source.

getWidth

int getWidth()
Returns:
the window's width.

getHeight

int getHeight()
Returns:
the window's height.

setCursor

void setCursor(Cursor cursor)
Sets the new Cursor for this Mouse. Use null for an invisible Cursor. Use Cursor.DEFAULT_CURSOR for the system's default Cursor.

Parameters:
cursor -

refreshCursor

void refreshCursor(Mouse mouse)
Refreshes the Cursor on this window.

Parameters:
mouse - the mouse, that triggers this method.

getCursor

Cursor getCursor()
Returns:
the currently used Cursor.