public final class MonocleApplication extends Application
Application.EventHandler
Modifier and Type | Field and Description |
---|---|
private static int |
DEVICE_5WAY
Bit to indicate that a device has arrow keys and a select key
|
private static int |
DEVICE_MAX
Largest bit used in device capability bitmasks
|
private static int |
DEVICE_MULTITOUCH
Bit to indicate that a device has multitouch support
|
private static int |
DEVICE_PC_KEYBOARD
Bit to indicate that a device has a full PC keyboard
|
private static int |
DEVICE_POINTER
Bit to indicate that a device has relative motion pointer support
|
private static int |
DEVICE_TOUCH
Bit to indicate that a device has touch support
|
private int[] |
deviceFlags
A running count of the numbers of devices with each device capability
|
private NativePlatform |
platform |
private java.lang.Runnable |
renderEndNotifier |
private RunnableProcessor |
runnableProcessor |
private java.lang.Thread |
shutdownHookThread |
name
Constructor and Description |
---|
MonocleApplication() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_enterNestedEventLoop() |
protected int |
_getKeyCodeForChar(char c) |
protected void |
_invokeAndWait(java.lang.Runnable runnable) |
protected void |
_invokeLater(java.lang.Runnable runnable) |
protected void |
_leaveNestedEventLoop(java.lang.Object retValue) |
protected boolean |
_supportsTransparentWindows() |
protected boolean |
_supportsUnifiedWindows() |
Cursor |
createCursor(int type) |
Cursor |
createCursor(int x,
int y,
Pixels pixels) |
Pixels |
createPixels(int width,
int height,
java.nio.ByteBuffer data) |
Pixels |
createPixels(int width,
int height,
java.nio.IntBuffer data) |
Pixels |
createPixels(int width,
int height,
java.nio.IntBuffer data,
float scale) |
Robot |
createRobot() |
Timer |
createTimer(java.lang.Runnable runnable) |
View |
createView() |
Window |
createWindow(long parent) |
Window |
createWindow(Window owner,
Screen screen,
int styleMask)
Create a window.
|
(package private) void |
enterDnDEventLoop() |
protected void |
finishTerminating() |
boolean |
hasMultiTouch() |
boolean |
hasPointer() |
boolean |
hasTouch() |
boolean |
hasTwoLevelFocus() |
boolean |
hasVirtualKeyboard() |
boolean |
hasWindowManager() |
(package private) void |
leaveDndEventLoop() |
void |
notifyRenderingFinished()
Notifies the Application that rendering has completed for current pulse.
|
protected void |
runLoop(java.lang.Runnable launchable) |
protected CommonDialogs.FileChooserResult |
staticCommonDialogs_showFileChooser(Window owner,
java.lang.String folder,
java.lang.String filename,
java.lang.String title,
int type,
boolean multipleMode,
CommonDialogs.ExtensionFilter[] extensionFilters,
int defaultFilterIndex) |
protected java.io.File |
staticCommonDialogs_showFolderChooser(Window owner,
java.lang.String folder,
java.lang.String title) |
protected Size |
staticCursor_getBestSize(int width,
int height) |
protected void |
staticCursor_setVisible(boolean visible) |
protected int |
staticPixels_getNativeFormat() |
protected Screen[] |
staticScreen_getScreens() |
protected double |
staticScreen_getVideoRefreshPeriod() |
protected int |
staticTimer_getMaxPeriod() |
protected int |
staticTimer_getMinPeriod() |
protected int |
staticView_getMultiClickMaxX() |
protected int |
staticView_getMultiClickMaxY() |
protected long |
staticView_getMultiClickTime() |
private void |
updateDeviceFlags(InputDevice device,
boolean added) |
_supportsInputMethods, _supportsSystemMenu, checkEventThread, createAccessible, createEventLoop, createMenu, createMenu, createMenuBar, createMenuItem, createMenuItem, createMenuItem, createMenuItem, createWindow, GetApplication, getDataDirectory, getDeviceDetails, getEventHandler, getEventThread, getHighContrastTheme, getKeyCodeForChar, getName, installDefaultMenus, invokeAndWait, invokeLater, isEventThread, isNestedLoopRunning, loadNativeLibrary, loadNativeLibrary, menuAboutAction, reportException, run, setDeviceDetails, setEventHandler, setEventThread, setName, setTerminateWhenLastWindowClosed, shouldTerminateWhenLastWindowClosed, shouldUpdateWindow, supportsInputMethods, supportsSystemMenu, supportsTransparentWindows, supportsUnifiedWindows, terminate
private final NativePlatform platform
private final RunnableProcessor runnableProcessor
private static final int DEVICE_TOUCH
private static final int DEVICE_MULTITOUCH
private static final int DEVICE_POINTER
private static final int DEVICE_5WAY
private static final int DEVICE_PC_KEYBOARD
private static final int DEVICE_MAX
private int[] deviceFlags
private java.lang.Thread shutdownHookThread
private java.lang.Runnable renderEndNotifier
private void updateDeviceFlags(InputDevice device, boolean added)
protected void runLoop(java.lang.Runnable launchable)
runLoop
in class Application
protected void _invokeAndWait(java.lang.Runnable runnable)
_invokeAndWait
in class Application
protected void _invokeLater(java.lang.Runnable runnable)
_invokeLater
in class Application
protected java.lang.Object _enterNestedEventLoop()
_enterNestedEventLoop
in class Application
protected void _leaveNestedEventLoop(java.lang.Object retValue)
_leaveNestedEventLoop
in class Application
public Window createWindow(Window owner, Screen screen, int styleMask)
Application
createWindow
in class Application
public Window createWindow(long parent)
createWindow
in class Application
public View createView()
createView
in class Application
public Cursor createCursor(int type)
createCursor
in class Application
public Cursor createCursor(int x, int y, Pixels pixels)
createCursor
in class Application
protected void staticCursor_setVisible(boolean visible)
staticCursor_setVisible
in class Application
protected Size staticCursor_getBestSize(int width, int height)
staticCursor_getBestSize
in class Application
public Pixels createPixels(int width, int height, java.nio.ByteBuffer data)
createPixels
in class Application
public Pixels createPixels(int width, int height, java.nio.IntBuffer data)
createPixels
in class Application
public Pixels createPixels(int width, int height, java.nio.IntBuffer data, float scale)
createPixels
in class Application
protected int staticPixels_getNativeFormat()
staticPixels_getNativeFormat
in class Application
public Robot createRobot()
createRobot
in class Application
protected double staticScreen_getVideoRefreshPeriod()
staticScreen_getVideoRefreshPeriod
in class Application
protected Screen[] staticScreen_getScreens()
staticScreen_getScreens
in class Application
public Timer createTimer(java.lang.Runnable runnable)
createTimer
in class Application
protected int staticTimer_getMinPeriod()
staticTimer_getMinPeriod
in class Application
protected int staticTimer_getMaxPeriod()
staticTimer_getMaxPeriod
in class Application
public boolean hasWindowManager()
hasWindowManager
in class Application
protected CommonDialogs.FileChooserResult staticCommonDialogs_showFileChooser(Window owner, java.lang.String folder, java.lang.String filename, java.lang.String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)
staticCommonDialogs_showFileChooser
in class Application
protected java.io.File staticCommonDialogs_showFolderChooser(Window owner, java.lang.String folder, java.lang.String title)
staticCommonDialogs_showFolderChooser
in class Application
protected long staticView_getMultiClickTime()
staticView_getMultiClickTime
in class Application
protected int staticView_getMultiClickMaxX()
staticView_getMultiClickMaxX
in class Application
protected int staticView_getMultiClickMaxY()
staticView_getMultiClickMaxY
in class Application
protected boolean _supportsTransparentWindows()
_supportsTransparentWindows
in class Application
protected boolean _supportsUnifiedWindows()
_supportsUnifiedWindows
in class Application
public boolean hasTwoLevelFocus()
hasTwoLevelFocus
in class Application
public boolean hasVirtualKeyboard()
hasVirtualKeyboard
in class Application
public boolean hasTouch()
hasTouch
in class Application
public boolean hasMultiTouch()
hasMultiTouch
in class Application
public boolean hasPointer()
hasPointer
in class Application
public void notifyRenderingFinished()
Application
notifyRenderingFinished
in class Application
protected void finishTerminating()
finishTerminating
in class Application
void enterDnDEventLoop()
void leaveDndEventLoop()
protected int _getKeyCodeForChar(char c)
_getKeyCodeForChar
in class Application