APIdia Launch Partner
Top Fields Constructors Methods
com.sun.glass.ui.monocle

public final Class MonocleApplication

extends Application
Class Inheritance
Imports
com.sun.glass.ui.Application, .CommonDialogs.ExtensionFilter, .CommonDialogs.FileChooserResult, .Cursor, .GlassRobot, .Pixels, .Screen, .Size, .Timer, .View, .Window, javafx.collections.SetChangeListener, java.io.File, java.nio.ByteBuffer, .IntBuffer, java.util.List

Field Summary

Modifier and TypeField and Description
private static final int
DEVICE_5WAY

Bit to indicate that a device has arrow keys and a select key

private static final int
DEVICE_MAX

Largest bit used in device capability bitmasks

private static final int
DEVICE_MULTITOUCH

Bit to indicate that a device has multitouch support

private static final int
DEVICE_PC_KEYBOARD

Bit to indicate that a device has a full PC keyboard

private static final int
DEVICE_POINTER

Bit to indicate that a device has relative motion pointer support

private static final 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 final NativePlatform
private Runnable
private final RunnableProcessor
private Thread
Inherited from com.sun.glass.ui.Application:
name

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Object
protected int
protected void
protected void
protected void
protected void
protected boolean
protected boolean
protected boolean
public Cursor
public Cursor
createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Application.createCursor.

public Pixels
createPixels(int width, int height, ByteBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

public Pixels
createPixels(int width, int height, ByteBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

public Pixels
createPixels(int width, int height, IntBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

public Pixels
createPixels(int width, int height, IntBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

public GlassRobot
public Timer
public View
public Window
createWindow(Window owner, Screen screen, int styleMask)

Implements abstract com.sun.glass.ui.Application.createWindow.

Create a window.

pack-priv void
protected void
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
pack-priv void
public void
notifyRenderingFinished()

Overrides com.sun.glass.ui.Application.notifyRenderingFinished.

Notifies the Application that rendering has completed for current pulse.

protected void
runLoop(Runnable launchable)

Implements abstract com.sun.glass.ui.Application.runLoop.

protected CommonDialogs.FileChooserResult
staticCommonDialogs_showFileChooser(Window owner, String folder, String filename, String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFileChooser.

protected File
protected Size
protected void
protected int
protected Screen[]
protected double
protected int
protected int
protected int
protected int
protected long
private void
updateDeviceFlags(InputDevice device, boolean added)

Inherited from com.sun.glass.ui.Application:
_isKeyLocked_supportsInputMethods_supportsSystemMenucheckEventThreadcheckPlatformPreferencesSupportcreateAccessiblecreateEventLoopcreateMenucreateMenucreateMenuBarcreateMenuItemcreateMenuItemcreateMenuItemcreateMenuItemcreateWindowGetApplicationgetDataDirectorygetDeviceDetailsgetEventHandlergetEventThreadgetKeyCodeForChargetNamegetPlatformKeyMappingsgetPlatformKeysgetPlatformPreferencesinstallDefaultMenusinvokeAndWaitinvokeLaterisEventThreadisKeyLockedisNestedLoopRunningloadNativeLibraryloadNativeLibrarymenuAboutActionnotifyDidBecomeActivenotifyDidFinishLaunchingnotifyDidHidenotifyDidReceiveMemoryWarningnotifyDidResignActivenotifyDidUnhidenotifyOpenFilesnotifyPreferencesChangednotifyWillBecomeActivenotifyWillFinishLaunchingnotifyWillHidenotifyWillQuitnotifyWillResignActivenotifyWillUnhideoverrideNativeWindowHandlereportExceptionrunsetDeviceDetailssetEventHandlersetEventThreadsetNamesetTerminateWhenLastWindowClosedshouldTerminateWhenLastWindowClosedshouldUpdateWindowshowDocumentsupportsExtendedWindowssupportsInputMethodssupportsSystemMenusupportsTransparentWindowssupportsUnifiedWindowsterminate

Field Detail

DEVICE_5WAYback to summary
private static final int DEVICE_5WAY

Bit to indicate that a device has arrow keys and a select key

DEVICE_MAXback to summary
private static final int DEVICE_MAX

Largest bit used in device capability bitmasks

DEVICE_MULTITOUCHback to summary
private static final int DEVICE_MULTITOUCH

Bit to indicate that a device has multitouch support

DEVICE_PC_KEYBOARDback to summary
private static final int DEVICE_PC_KEYBOARD

Bit to indicate that a device has a full PC keyboard

DEVICE_POINTERback to summary
private static final int DEVICE_POINTER

Bit to indicate that a device has relative motion pointer support

DEVICE_TOUCHback to summary
private static final int DEVICE_TOUCH

Bit to indicate that a device has touch support

deviceFlagsback to summary
private int[] deviceFlags

A running count of the numbers of devices with each device capability

platformback to summary
private final NativePlatform platform
renderEndNotifierback to summary
private Runnable renderEndNotifier
runnableProcessorback to summary
private final RunnableProcessor runnableProcessor
shutdownHookThreadback to summary
private Thread shutdownHookThread

Constructor Detail

MonocleApplicationback to summary
pack-priv MonocleApplication()

Method Detail

_enterNestedEventLoopback to summary
protected Object _enterNestedEventLoop()

Implements abstract com.sun.glass.ui.Application._enterNestedEventLoop.

Annotations
@Override
_getKeyCodeForCharback to summary
protected int _getKeyCodeForChar(char c, int hint)

Implements abstract com.sun.glass.ui.Application._getKeyCodeForChar.

Annotations
@Override
_invokeAndWaitback to summary
protected void _invokeAndWait(Runnable runnable)

Implements abstract com.sun.glass.ui.Application._invokeAndWait.

Annotations
@Override
_invokeLaterback to summary
protected void _invokeLater(Runnable runnable)

Implements abstract com.sun.glass.ui.Application._invokeLater.

Annotations
@Override
_leaveNestedEventLoopback to summary
protected void _leaveNestedEventLoop(Object retValue)

Implements abstract com.sun.glass.ui.Application._leaveNestedEventLoop.

Annotations
@Override
_showDocumentback to summary
protected void _showDocument(String uri)

Implements abstract com.sun.glass.ui.Application._showDocument.

Annotations
@Override
_supportsExtendedWindowsback to summary
protected boolean _supportsExtendedWindows()

Implements abstract com.sun.glass.ui.Application._supportsExtendedWindows.

Annotations
@Override
_supportsTransparentWindowsback to summary
protected boolean _supportsTransparentWindows()

Implements abstract com.sun.glass.ui.Application._supportsTransparentWindows.

Annotations
@Override
_supportsUnifiedWindowsback to summary
protected boolean _supportsUnifiedWindows()

Implements abstract com.sun.glass.ui.Application._supportsUnifiedWindows.

Annotations
@Override
createCursorback to summary
public Cursor createCursor(int type)

Implements abstract com.sun.glass.ui.Application.createCursor.

Annotations
@Override
createCursorback to summary
public Cursor createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Application.createCursor.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, ByteBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, ByteBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, IntBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, IntBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createRobotback to summary
public GlassRobot createRobot()

Implements abstract com.sun.glass.ui.Application.createRobot.

Annotations
@Override
createTimerback to summary
public Timer createTimer(Runnable runnable)

Implements abstract com.sun.glass.ui.Application.createTimer.

Annotations
@Override
createViewback to summary
public View createView()

Implements abstract com.sun.glass.ui.Application.createView.

Annotations
@Override
createWindowback to summary
public Window createWindow(Window owner, Screen screen, int styleMask)

Implements abstract com.sun.glass.ui.Application.createWindow.

Doc from com.sun.glass.ui.Application.createWindow.

Create a window. The styleMask argument is a bitmask of window styles as defined in the Window class. Note, however, that visual kinds (UNTITLED, TITLED, or TRANSPARENT) can't be combined together. Also, functional types (NORMAL, POPUP, or UTILITY) can't be combined together. A window is allowed to be of exactly one visual kind, and exactly one functional type.

Annotations
@Override
enterDnDEventLoopback to summary
pack-priv void enterDnDEventLoop()
finishTerminatingback to summary
protected void finishTerminating()

Overrides com.sun.glass.ui.Application.finishTerminating.

Annotations
@Override
hasMultiTouchback to summary
public boolean hasMultiTouch()

Overrides com.sun.glass.ui.Application.hasMultiTouch.

Annotations
@Override
hasPointerback to summary
public boolean hasPointer()

Overrides com.sun.glass.ui.Application.hasPointer.

Annotations
@Override
hasTouchback to summary
public boolean hasTouch()

Overrides com.sun.glass.ui.Application.hasTouch.

Annotations
@Override
hasTwoLevelFocusback to summary
public boolean hasTwoLevelFocus()

Overrides com.sun.glass.ui.Application.hasTwoLevelFocus.

Annotations
@Override
hasVirtualKeyboardback to summary
public boolean hasVirtualKeyboard()

Overrides com.sun.glass.ui.Application.hasVirtualKeyboard.

Annotations
@Override
hasWindowManagerback to summary
public boolean hasWindowManager()

Overrides com.sun.glass.ui.Application.hasWindowManager.

Annotations
@Override
leaveDndEventLoopback to summary
pack-priv void leaveDndEventLoop()
notifyRenderingFinishedback to summary
public void notifyRenderingFinished()

Overrides com.sun.glass.ui.Application.notifyRenderingFinished.

Doc from com.sun.glass.ui.Application.notifyRenderingFinished.

Notifies the Application that rendering has completed for current pulse. This is called on the render thread.

Annotations
@Override
runLoopback to summary
protected void runLoop(Runnable launchable)

Implements abstract com.sun.glass.ui.Application.runLoop.

Annotations
@Override
staticCommonDialogs_showFileChooserback to summary
protected CommonDialogs.FileChooserResult staticCommonDialogs_showFileChooser(Window owner, String folder, String filename, String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFileChooser.

Annotations
@Override
staticCommonDialogs_showFolderChooserback to summary
protected File staticCommonDialogs_showFolderChooser(Window owner, String folder, String title)

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFolderChooser.

Annotations
@Override
staticCursor_getBestSizeback to summary
protected Size staticCursor_getBestSize(int width, int height)

Implements abstract com.sun.glass.ui.Application.staticCursor_getBestSize.

Annotations
@Override
staticCursor_setVisibleback to summary
protected void staticCursor_setVisible(boolean visible)

Implements abstract com.sun.glass.ui.Application.staticCursor_setVisible.

Annotations
@Override
staticPixels_getNativeFormatback to summary
protected int staticPixels_getNativeFormat()

Implements abstract com.sun.glass.ui.Application.staticPixels_getNativeFormat.

Annotations
@Override
staticScreen_getScreensback to summary
protected Screen[] staticScreen_getScreens()

Implements abstract com.sun.glass.ui.Application.staticScreen_getScreens.

Annotations
@Override
staticScreen_getVideoRefreshPeriodback to summary
protected double staticScreen_getVideoRefreshPeriod()

Implements abstract com.sun.glass.ui.Application.staticScreen_getVideoRefreshPeriod.

Annotations
@Override
staticTimer_getMaxPeriodback to summary
protected int staticTimer_getMaxPeriod()

Implements abstract com.sun.glass.ui.Application.staticTimer_getMaxPeriod.

Annotations
@Override
staticTimer_getMinPeriodback to summary
protected int staticTimer_getMinPeriod()

Implements abstract com.sun.glass.ui.Application.staticTimer_getMinPeriod.

Annotations
@Override
staticView_getMultiClickMaxXback to summary
protected int staticView_getMultiClickMaxX()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickMaxX.

Annotations
@Override
staticView_getMultiClickMaxYback to summary
protected int staticView_getMultiClickMaxY()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickMaxY.

Annotations
@Override
staticView_getMultiClickTimeback to summary
protected long staticView_getMultiClickTime()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickTime.

Annotations
@Override
updateDeviceFlagsback to summary
private void updateDeviceFlags(InputDevice device, boolean added)