public interface GuiPrimitives extends OutputPrimitives
This interface is for GUI-specific features. It is intended to be specific to a given UI-modality (GUI in this case). No driver-specific implementation classes or features should be present. For example, no Swing-specific feature usage is allowed.
Modifier and Type | Method and Description |
---|---|
void |
deregisterWindow(int windowId)
Deregister the given window from the driver.
|
EmulatedWindowState |
getWindowEmulator()
Get the currently selected window emulator.
|
EmulatedWindowState |
getWindowEmulator(int windowId)
Returns the window emulator registered for the supplied window id.
|
boolean |
hasWindowEmulator(int windowId)
Check if window has an emulator for the given window id.
|
void |
registerWindow(int windowId,
EmulatedWindowState ews)
Register a new window with the driver.
|
void |
releaseWindow()
On a device which allows multiple windows to be created, this allows releasing the window to
allow drawing from other threads.
|
void |
selectWindow(int windowId)
On a GUI interface multiple windows can be created.
|
void |
shutdown()
Perform shutdown.
|
clearArea, getScreenBitmap, getWindowId, refresh, screenHeight, screenWidth, setScreenBitmap, sync
EmulatedWindowState getWindowEmulator()
EmulatedWindowState getWindowEmulator(int windowId)
windowId
- A valid window id.java.lang.RuntimeException
- When no window emulator is registered for the supplied window id.boolean hasWindowEmulator(int windowId)
windowId
- Window ID.true
if window has an associated emulator, true
otherwise.void registerWindow(int windowId, EmulatedWindowState ews)
windowId
- The window ID.ews
- New emulated window state to register.void deregisterWindow(int windowId)
windowId
- The window ID.void selectWindow(int windowId)
windowId
- Window ID.void releaseWindow()
void shutdown()