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

pack-priv final Class MonocleWindow

extends Window
Class Inheritance
Imports
com.sun.glass.events.MouseEvent, .ViewEvent, .WindowEvent, com.sun.glass.ui.Application, .Cursor, .Pixels, .Screen, .View, .Window

Field Summary

Modifier and TypeField and Description
private float
private int
private int
private int
private int
private int
private int
private int
private int
private int
private int
private static final int
private static final int
private static final int
private static final int
Inherited from com.sun.glass.ui.Window:
CLOSABLEDARK_FRAMEEXTENDEDheaderButtonMetricsheaderButtonOverlayheightMAXIMIZABLEMINIMIZABLEMODALNORMALplatformScaleXplatformScaleYPOPUPRIGHT_TO_LEFTscreenTITLEDTRANSPARENTUNIFIEDUNTITLEDUTILITYviewwidthxy

Constructor Summary

AccessConstructor and Description
pack-priv
MonocleWindow(Window owner, Screen screen, int styleMask)

Method Summary

Modifier and TypeMethod and Description
protected boolean
_close(long nativeWindowPointer)

Implements abstract com.sun.glass.ui.Window._close.

protected long
_createWindow(long NativeWindow, long NativeScreen, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

protected boolean
_grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

protected boolean
_maximize(long nativeWindowPointer, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

protected boolean
_minimize(long nativeWindowPointer, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

pack-priv void
protected void
protected void
protected boolean
_requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

protected void
_requestInput(long ptr, String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements abstract com.sun.glass.ui.Window._requestInput.

protected void
_setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

protected boolean
_setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

protected void
_setBounds(long nativeWindowPointer, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

w/h is the total window width/height including all its decorations (e.g. title bar).

protected void
_setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

protected void
_setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

protected void
_setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

protected void
_setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

protected void
_setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

protected boolean
_setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

protected boolean
_setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

protected boolean
_setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

protected boolean
_setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

protected boolean
_setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

protected boolean
_setView(long nativeWindowPointer, View view)

Implements abstract com.sun.glass.ui.Window._setView.

protected boolean
_setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

protected void
_toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

protected void
_toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

protected void
_ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

protected void
public long
getNativeWindow()

Overrides com.sun.glass.ui.Window.getNativeWindow.

Returns the handle used to create a rendering context in Prism

protected void
protected void
protected void
protected void
private void
notifyResizeAndMove(int x, int y, int width, int height)

pack-priv void
setFullScreen(boolean fullscreen)

Inherited from com.sun.glass.ui.Window:
addaddFirstclosegetAlphagetEventHandlergetHeightgetLevelgetMaximumHeightgetMaximumWidthgetMenuBargetMinimumHeightgetMinimumWidthgetNativeHandlegetOutputScaleXgetOutputScaleYgetOwnergetPlatformScaleXgetPlatformScaleYgetRawHandlegetRenderScaleXgetRenderScaleYgetScreengetStyleMaskgetTitlegetViewgetWidthgetWindowsgetWindowsClonegetXgetYgrabFocushandleWindowEventheaderButtonDarkStylePropertyheaderButtonHeightPropertyheaderButtonMetricsPropertyheaderButtonOverlayPropertyisClosedisDecoratedisEnabledisExtendedWindowisFocusedisMaximizedisMinimizedisModalisPopupisResizableisTransparentWindowisUnifiedWindowisUtilityWindowisVisiblemaximizeminimizenotifyDelegatePtrnotifyFocusDisablednotifyFocusUngrabnotifyLevelChangednotifyMovenotifyRescalenotifyResizenotifyScaleChangedreleaseInputremoverequestFocusrequestFocusrequestInputsetAlphasetBackgroundsetBoundssetContentSizesetCursorsetDarkFramesetEnabledsetEventHandlersetFocusablesetHeaderButtonDarkStylesetHeaderButtonHeightsetIconsetLevelsetMaximumSizesetMenuBarsetMinimumSizesetPositionsetRenderScaleXsetRenderScaleYsetResizablesetScreensetSizesetStatesetTitlesetViewsetVisibletoBacktoFronttoStringungrabFocus

Field Detail

cachedAlphaback to summary
private float cachedAlpha
cachedHback to summary
private int cachedH
cachedWback to summary
private int cachedW
cachedXback to summary
private int cachedX
cachedYback to summary
private int cachedY
idback to summary
private int id
maxHback to summary
private int maxH
maxWback to summary
private int maxW
minHback to summary
private int minH
minWback to summary
private int minW
stateback to summary
private int state

Hides com.sun.glass.ui.Window.state.

STATE_FULLSCREENback to summary
private static final int STATE_FULLSCREEN
STATE_MAXIMIZEDback to summary
private static final int STATE_MAXIMIZED
STATE_MINIMIZEDback to summary
private static final int STATE_MINIMIZED
STATE_NORMALback to summary
private static final int STATE_NORMAL

Constructor Detail

MonocleWindowback to summary
pack-priv MonocleWindow(Window owner, Screen screen, int styleMask)

Method Detail

_closeback to summary
protected boolean _close(long nativeWindowPointer)

Implements abstract com.sun.glass.ui.Window._close.

Annotations
@Override
_createWindowback to summary
protected long _createWindow(long NativeWindow, long NativeScreen, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

Annotations
@Override
_grabFocusback to summary
protected boolean _grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

Annotations
@Override
_maximizeback to summary
protected boolean _maximize(long nativeWindowPointer, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

Annotations
@Override
_minimizeback to summary
protected boolean _minimize(long nativeWindowPointer, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

Annotations
@Override
_notifyFocusDisabledback to summary
pack-priv void _notifyFocusDisabled()
_notifyFocusUngrabback to summary
protected void _notifyFocusUngrab()
_releaseInputback to summary
protected void _releaseInput(long ptr)

Implements abstract com.sun.glass.ui.Window._releaseInput.

Annotations
@Override
_requestFocusback to summary
protected boolean _requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

Annotations
@Override
_requestInputback to summary
protected void _requestInput(long ptr, String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements abstract com.sun.glass.ui.Window._requestInput.

Annotations
@Override
_setAlphaback to summary
protected void _setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

Annotations
@Override
_setBackgroundback to summary
protected boolean _setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

Annotations
@Override
_setBoundsback to summary
protected void _setBounds(long nativeWindowPointer, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

w/h is the total window width/height including all its decorations (e.g. title bar). cw/ch is the "client", or interior width/height. Negative values for w/h/cw/ch are treated as "not set". For example: setBounds(x, y, xSet, ySet, 800, 600, -1, -1) will make the window 800x600 pixels. The client area available for drawing will be smaller, e.g. 792x580 - it depends on the window decorations on different platforms. setBounds(x, y, xSet, ySet, -1, -1, 800, 600) will make the window client size to be 800x600 pixels. The area for drawing (FX scene size) will be exactly 800x600, but the total window size including decorations will be slightly bigger. For undecorated windows w/h and cw/ch are obviously the same. As this is a void function the native code should trigger an event to notify the system on actual change

Annotations
@Override
_setCursorback to summary
protected void _setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

Annotations
@Override
_setEnabledback to summary
protected void _setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

Annotations
@Override
_setFocusableback to summary
protected void _setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

Annotations
@Override
_setIconback to summary
protected void _setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

Annotations
@Override
_setLevelback to summary
protected void _setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

Annotations
@Override
_setMaximumSizeback to summary
protected boolean _setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

Annotations
@Override
_setMenubarback to summary
protected boolean _setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

Annotations
@Override
_setMinimumSizeback to summary
protected boolean _setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

Annotations
@Override
_setResizableback to summary
protected boolean _setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

Annotations
@Override
_setTitleback to summary
protected boolean _setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

Annotations
@Override
_setViewback to summary
protected boolean _setView(long nativeWindowPointer, View view)

Implements abstract com.sun.glass.ui.Window._setView.

Annotations
@Override
_setVisibleback to summary
protected boolean _setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

Annotations
@Override
_toBackback to summary
protected void _toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

Annotations
@Override
_toFrontback to summary
protected void _toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

Annotations
@Override
_ungrabFocusback to summary
protected void _ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

Annotations
@Override
_updateViewSizeback to summary
protected void _updateViewSize(long ptr)

Implements abstract com.sun.glass.ui.Window._updateViewSize.

Annotations
@Override
getNativeWindowback to summary
public long getNativeWindow()

Overrides com.sun.glass.ui.Window.getNativeWindow.

Returns the handle used to create a rendering context in Prism

Annotations
@Override
notifyCloseback to summary
protected void notifyClose()

Overrides com.sun.glass.ui.Window.notifyClose.

Annotations
@Override
notifyDestroyback to summary
protected void notifyDestroy()

Overrides com.sun.glass.ui.Window.notifyDestroy.

Annotations
@Override
notifyFocusback to summary
protected void notifyFocus(int event)

Overrides com.sun.glass.ui.Window.notifyFocus.

Annotations
@Override
notifyMoveToAnotherScreenback to summary
protected void notifyMoveToAnotherScreen(Screen screen)

Overrides com.sun.glass.ui.Window.notifyMoveToAnotherScreen.

Annotations
@Override
notifyResizeAndMoveback to summary
private void notifyResizeAndMove(int x, int y, int width, int height)
setFullScreenback to summary
pack-priv void setFullScreen(boolean fullscreen)