final class WinApplication extends Application implements InvokeLaterDispatcher.InvokeLaterSubmitter
Application.EventHandler
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
forceIntegerRenderScale |
private InvokeLaterDispatcher |
invokeLaterDispatcher |
(package private) static float |
minDPIScale |
(package private) static float |
overrideRenderScale |
(package private) static float |
overrideUIScale |
private static int |
Process_DPI_Unaware |
private static int |
Process_Per_Monitor_DPI_Aware |
private static int |
Process_System_DPI_Aware |
private static boolean |
verbose |
name
Constructor and Description |
---|
WinApplication() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_enterNestedEventLoop() |
private java.lang.Object |
_enterNestedEventLoopImpl() |
private java.lang.String |
_getHighContrastTheme() |
protected int |
_getKeyCodeForChar(char c) |
private long |
_init(int awarenessRequested) |
protected void |
_invokeAndWait(java.lang.Runnable runnable) |
protected void |
_invokeLater(java.lang.Runnable runnable) |
protected void |
_leaveNestedEventLoop(java.lang.Object retValue) |
private void |
_leaveNestedEventLoopImpl(java.lang.Object retValue) |
private void |
_runLoop(java.lang.Runnable launchable) |
private void |
_setClassLoader(java.lang.ClassLoader classLoader) |
private void |
_submitForLaterInvocation(java.lang.Runnable r) |
protected boolean |
_supportsInputMethods() |
protected boolean |
_supportsTransparentWindows() |
protected boolean |
_supportsUnifiedWindows() |
private void |
_terminateLoop() |
Accessible |
createAccessible() |
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.
|
protected void |
finishTerminating() |
private static boolean |
getBoolean(java.lang.String propname,
boolean defval,
java.lang.String description) |
java.lang.String |
getDataDirectory()
Gets a platform specific path that can be used to store
application data.
|
private static int |
getDesiredAwarenesslevel() |
private static float |
getFloat(java.lang.String propname,
float defval,
java.lang.String description) |
java.lang.String |
getHighContrastTheme()
Gets the Name of the currently active high contrast theme.
|
private static void |
initIDs(float overrideUIScale,
float overrideRenderScale,
float minDPIScale,
boolean forceIntegerRenderScale) |
protected void |
runLoop(java.lang.Runnable launchable) |
boolean |
shouldUpdateWindow() |
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() |
void |
submitForLaterInvocation(java.lang.Runnable r)
Submits the runnable to the native system for later execution and
returns immediately.
|
_supportsSystemMenu, checkEventThread, createEventLoop, createMenu, createMenu, createMenuBar, createMenuItem, createMenuItem, createMenuItem, createMenuItem, createWindow, GetApplication, getDeviceDetails, getEventHandler, getEventThread, getKeyCodeForChar, getName, hasMultiTouch, hasPointer, hasTouch, hasTwoLevelFocus, hasVirtualKeyboard, hasWindowManager, installDefaultMenus, invokeAndWait, invokeLater, isEventThread, isNestedLoopRunning, loadNativeLibrary, loadNativeLibrary, menuAboutAction, notifyRenderingFinished, reportException, run, setDeviceDetails, setEventHandler, setEventThread, setName, setTerminateWhenLastWindowClosed, shouldTerminateWhenLastWindowClosed, supportsInputMethods, supportsSystemMenu, supportsTransparentWindows, supportsUnifiedWindows, terminate
static float overrideUIScale
static float overrideRenderScale
static float minDPIScale
static boolean forceIntegerRenderScale
private final InvokeLaterDispatcher invokeLaterDispatcher
private static boolean verbose
private static final int Process_DPI_Unaware
private static final int Process_System_DPI_Aware
private static final int Process_Per_Monitor_DPI_Aware
private static boolean getBoolean(java.lang.String propname, boolean defval, java.lang.String description)
private static float getFloat(java.lang.String propname, float defval, java.lang.String description)
private static void initIDs(float overrideUIScale, float overrideRenderScale, float minDPIScale, boolean forceIntegerRenderScale)
private long _init(int awarenessRequested)
private void _setClassLoader(java.lang.ClassLoader classLoader)
private void _runLoop(java.lang.Runnable launchable)
private void _terminateLoop()
private static int getDesiredAwarenesslevel()
protected void runLoop(java.lang.Runnable launchable)
runLoop
in class Application
protected void finishTerminating()
finishTerminating
in class Application
public boolean shouldUpdateWindow()
shouldUpdateWindow
in class Application
private java.lang.Object _enterNestedEventLoopImpl()
private void _leaveNestedEventLoopImpl(java.lang.Object retValue)
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 Accessible createAccessible()
createAccessible
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 void _invokeAndWait(java.lang.Runnable runnable)
_invokeAndWait
in class Application
private void _submitForLaterInvocation(java.lang.Runnable r)
public void submitForLaterInvocation(java.lang.Runnable r)
InvokeLaterDispatcher.InvokeLaterSubmitter
submitForLaterInvocation
in interface InvokeLaterDispatcher.InvokeLaterSubmitter
protected void _invokeLater(java.lang.Runnable runnable)
_invokeLater
in class Application
private java.lang.String _getHighContrastTheme()
public java.lang.String getHighContrastTheme()
Application
getHighContrastTheme
in class Application
protected boolean _supportsInputMethods()
_supportsInputMethods
in class Application
protected boolean _supportsTransparentWindows()
_supportsTransparentWindows
in class Application
protected boolean _supportsUnifiedWindows()
_supportsUnifiedWindows
in class Application
public java.lang.String getDataDirectory()
Application
getDataDirectory
in class Application
protected int _getKeyCodeForChar(char c)
_getKeyCodeForChar
in class Application