APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

pack-priv abstract Class XDecoratedPeer

extends XWindowPeer
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XDialogPeer, sun.awt.X11.XFramePeer
Imports
java.awt.*, java.awt.event.ComponentEvent, .InvocationEvent, .WindowEvent, java.util.Collections, .HashMap, .Map, .Optional, sun.awt.IconInfo, .AWTAccessor, .SunToolkit, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
pack-priv XWindowPeer
pack-priv boolean
pack-priv XContentWindow
pack-priv volatile Insets
pack-priv volatile WindowDimensions
private static final PlatformLogger
pack-priv XFocusProxyWindow
private static final PlatformLogger
pack-priv XIconWindow
pack-priv boolean
private static final PlatformLogger
pack-priv static final Map<Class<?>, Insets>
private static final PlatformLogger
public static final String
pack-priv boolean
pack-priv long
private Insets
Inherited from sun.awt.X11.XWindowPeer:
delayedModalBlockingmodalBlockernet_wm_statenextTransientForprevTransientFortargetMinimumSizetoplevelStateListenersXA_NET_WM_STATE

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private void
private void
private void
private static Insets
private Insets
pack-priv XFocusProxyWindow
private static Insets
public void
dispose()

Overrides sun.awt.X11.XWindowPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

pack-priv final void
pack-priv final void
pack-priv final void
pack-priv final void
pack-priv final void
pack-priv final void
pack-priv final void
dumpWindow(String id, long window)

public int
public int
public Rectangle
public long
pack-priv int
public final WindowDimensions
pack-priv XFocusProxyWindow
pack-priv int
public Graphics
public int
pack-priv int
public Insets
getInsets()

Overrides sun.awt.X11.XWindowPeer.getInsets.

Implements java.awt.peer.ContainerPeer.getInsets.

Returns the insets of this container.

public Point
public Point
getLocationOnScreen()

Overrides sun.awt.X11.XWindow.getLocationOnScreen.

Implements java.awt.peer.ComponentPeer.getLocationOnScreen.

Determines the location of the component on the screen.

public final Optional<Boolean>
private Insets
public long
pack-priv Rectangle
public Dimension
public int
public final boolean
protected String
protected XAtomList
getWMProtocols()

Overrides sun.awt.X11.XWindow.getWMProtocols.

Returns list of protocols which should be installed on this window.

private Insets
getWMSetInsets(XAtom changedAtom)

public int
public int
pack-priv boolean
private Insets
public void
public void
private void
public void
public void
public void
pack-priv void
public void
private void
public void
public void
public void
private void
protected boolean
isEventDisabled(XEvent e)

Overrides sun.awt.X11.XComponentPeer.isEventDisabled.

END OF I N S E T S C O D E

protected boolean
pack-priv boolean
private static boolean
pack-priv boolean
pack-priv abstract boolean
pack-priv void
postInit(XCreateWindowParams params)

Overrides sun.awt.X11.XWindowPeer.postInit.

Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.

pack-priv void
preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XWindowPeer.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

pack-priv void
public boolean
requestWindowFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XWindowPeer.requestWindowFocus.

pack-priv boolean
requestWindowFocus(XWindowPeer actualFocusedWindow, long time, boolean timeProvided)

protected void
requestXFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XWindowPeer.requestXFocus.

Requests focus to this decorated top-level by requesting X input focus to the shell window.

private void
private void
reshape(WindowDimensions newDimensions, int op, boolean userReshape)

private void
reshape(int x, int y, int width, int height, int operation, boolean userReshape)

pack-priv void
public void
setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XWindowPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

pack-priv void
public void
setResizable(boolean resizable)

private void
private void
private void
public void
public void
setVisible(boolean vis)

Overrides sun.awt.X11.XWindowPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

protected void
public void
private void
pack-priv void
pack-priv void
pack-priv void
Inherited from sun.awt.X11.XWindowPeer:
addDropTargetaddRootPropertyEventDispatcheraddToplevelStateListenercheckIfOnNewScreencollectJavaToplevelsdisplayChangeddumpIconsfocusAllowedForgetDecoratedOwnergetDefaultIconInfogetFocusTargetWindowgetIconInfogetMenuBarHeightgetMWMHintsgetNativeFocusedWindowgetNativeFocusedWindowPeergetNETWMStategetNewLocationgetOwnerPeergetTargetMinimumSizegetWindowTypehandleButtonPressReleasehandleMapNotifyEventhandleMotionNotifyhandleRootPropertyNotifyhandleStateChangehandleUnmapNotifyEventhandleVisibilityEventhandleWindowFocusIn_DispatchhandleWindowFocusInSynchandleWindowFocusOutSynchandleXCrossingEventhasDecorationsisAutoRequestFocusisFocusableWindowisFocusedWindowModalBlockerisGrabbedisLocationByPlatformisModalBlockedisNativelyNonFocusableWindowisOLWMDecorBugisResizableisSimpleWindowisWithdrawnisWMStateNetHiddennormalizeIconImagespaletteChangedprintrecursivelySetIconremoveDropTargetremoveRootPropertyEventDispatcherremoveToplevelStateListenerrequestInitialFocusrequestWindowFocusrequestWindowFocusrequestXFocusrequestXFocusrestoreTransientForsetFullScreenExclusiveModeStatesetGrabsetModalBlockedsetModalBlockedsetMouseAbovesetMWMHintssetNETWMStatesetOpacitysetOpaquesetReparentedsetSaveUndersetToplevelTransientForstateChangedtoBacktoFrontupdateAlwaysOnTopStateupdateChildrenSizesupdateDropTargetupdateFocusabilityupdateFocusableWindowStateupdateIconImagesupdateTransientForupdateWindowxSetVisible

Field Detail

actualFocusedWindowback to summary
pack-priv XWindowPeer actualFocusedWindow
configure_seenback to summary
pack-priv boolean configure_seen
contentback to summary
pack-priv XContentWindow content
currentInsetsback to summary
pack-priv volatile Insets currentInsets
dimensionsback to summary
pack-priv volatile WindowDimensions dimensions
focusLogback to summary
private static final PlatformLogger focusLog

Hides sun.awt.X11.XWindowPeer.focusLog.

focusProxyback to summary
pack-priv XFocusProxyWindow focusProxy
iconLogback to summary
private static final PlatformLogger iconLog

Hides sun.awt.X11.XWindowPeer.iconLog.

iconWindowback to summary
pack-priv XIconWindow iconWindow
insets_correctedback to summary
pack-priv boolean insets_corrected
insLogback to summary
private static final PlatformLogger insLog

Hides sun.awt.X11.XWindowPeer.insLog.

lastKnownInsetsback to summary
pack-priv static final Map<Class<?>, Insets> lastKnownInsets
logback to summary
private static final PlatformLogger log

Hides sun.awt.X11.XWindowPeer.log.

MWM_DECOR_TITLE_PROPERTY_NAMEback to summary
public static final String MWM_DECOR_TITLE_PROPERTY_NAME
no_reparent_artifactsback to summary
pack-priv boolean no_reparent_artifacts
reparent_serialback to summary
pack-priv long reparent_serial
wm_set_insetsback to summary
private Insets wm_set_insets

Constructor Detail

XDecoratedPeerback to summary
pack-priv XDecoratedPeer(Window target)
XDecoratedPeerback to summary
pack-priv XDecoratedPeer(XCreateWindowParams params)

Method Detail

applyGuessedInsetsback to summary
private void applyGuessedInsets()
checkShellRectback to summary
private void checkShellRect(Rectangle shellRect)
checkShellRectPosback to summary
private void checkShellRectPos(Rectangle shellRect)
checkShellRectSizeback to summary
private void checkShellRectSize(Rectangle shellRect)
copyback to summary
private static Insets copy(Insets i)
copyAndScaleDownback to summary
private Insets copyAndScaleDown(Insets i)
createFocusProxyback to summary
pack-priv XFocusProxyWindow createFocusProxy()
differenceback to summary
private static Insets difference(Insets i1, Insets i2)
disposeback to summary
public void dispose()

Overrides sun.awt.X11.XWindowPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Doc from java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected.

Annotations
@Override
dumpAllback to summary
pack-priv final void dumpAll()
dumpContentback to summary
pack-priv final void dumpContent()
dumpMeback to summary
pack-priv final void dumpMe()
dumpParentback to summary
pack-priv final void dumpParent()
dumpShellback to summary
pack-priv final void dumpShell()
dumpTargetback to summary
pack-priv final void dumpTarget()
dumpWindowback to summary
pack-priv final void dumpWindow(String id, long window)
getAbsoluteXback to summary
public int getAbsoluteX()

Overrides sun.awt.X11.XBaseWindow.getAbsoluteX.

Annotations
@Override
getAbsoluteYback to summary
public int getAbsoluteY()

Overrides sun.awt.X11.XBaseWindow.getAbsoluteY.

Annotations
@Override
getBoundsback to summary
public Rectangle getBounds()

Overrides sun.awt.X11.XBaseWindow.getBounds.

Implements sun.awt.X11ComponentPeer.getBounds.

Annotations
@Override
getContentWindowback to summary
public long getContentWindow()

Overrides sun.awt.X11.XBaseWindow.getContentWindow.

Implements sun.awt.X11ComponentPeer.getContentWindow.

Annotations
@Override
getDecorationsback to summary
pack-priv int getDecorations()
getDimensionsback to summary
public final WindowDimensions getDimensions()
getFocusProxyback to summary
pack-priv XFocusProxyWindow getFocusProxy()
getFunctionsback to summary
pack-priv int getFunctions()
getGraphicsback to summary
public Graphics getGraphics()

Overrides sun.awt.X11.XComponentPeer.getGraphics.

Implements java.awt.peer.ComponentPeer.getGraphics, sun.awt.X11ComponentPeer.getGraphics.

Doc from java.awt.peer.ComponentPeer.getGraphics.

Returns a graphics object to paint on the component.

Annotations
@Override
getHeightback to summary
public int getHeight()

Overrides sun.awt.X11.XBaseWindow.getHeight.

Annotations
@Override
getInputMethodHeightback to summary
pack-priv int getInputMethodHeight()
getInsetsback to summary
public Insets getInsets()

Overrides sun.awt.X11.XWindowPeer.getInsets.

Implements java.awt.peer.ContainerPeer.getInsets.

Doc from java.awt.peer.ContainerPeer.getInsets.

Returns the insets of this container. Insets usually is the space that is occupied by things like borders.

Annotations
@Override
getLocationback to summary
public Point getLocation()
getLocationOnScreenback to summary
public Point getLocationOnScreen()

Overrides sun.awt.X11.XWindow.getLocationOnScreen.

Implements java.awt.peer.ComponentPeer.getLocationOnScreen.

Doc from java.awt.peer.ComponentPeer.getLocationOnScreen.

Determines the location of the component on the screen.

Annotations
@Override
getMWMDecorTitlePropertyback to summary
public final Optional<Boolean> getMWMDecorTitleProperty()
getRealInsetsback to summary
private Insets getRealInsets()
getShellback to summary
public long getShell()
getShellBoundsback to summary
pack-priv Rectangle getShellBounds()
getSizeback to summary
public Dimension getSize()

Overrides sun.awt.X11.XBaseWindow.getSize.

Annotations
@Override
getWidthback to summary
public int getWidth()

Overrides sun.awt.X11.XBaseWindow.getWidth.

Annotations
@Override
getWindowTitleVisibleback to summary
public final boolean getWindowTitleVisible()
getWMNameback to summary
protected String getWMName()

Overrides sun.awt.X11.XWindowPeer.getWMName.

Annotations
@Override
getWMProtocolsback to summary
protected XAtomList getWMProtocols()

Overrides sun.awt.X11.XWindow.getWMProtocols.

Doc from sun.awt.X11.XWindow.getWMProtocols.

Returns list of protocols which should be installed on this window. Descendants can override this method to add class-specific protocols

Annotations
@Override
getWMSetInsetsback to summary
private Insets getWMSetInsets(XAtom changedAtom)
getXback to summary
public int getX()

Overrides sun.awt.X11.XBaseWindow.getX.

Annotations
@Override
getYback to summary
public int getY()

Overrides sun.awt.X11.XBaseWindow.getY.

Annotations
@Override
gravityBugback to summary
pack-priv boolean gravityBug()
guessInsetsback to summary
private Insets guessInsets()
handleClientMessageback to summary
public void handleClientMessage(XEvent xev)

Overrides sun.awt.X11.XBaseWindow.handleClientMessage.

Annotations
@Override
handleConfigureNotifyEventback to summary
public void handleConfigureNotifyEvent(XEvent xev)

Overrides sun.awt.X11.XWindowPeer.handleConfigureNotifyEvent.

Annotations
@Override
handleCorrectInsetsback to summary
private void handleCorrectInsets(Insets correctWM)
handleDeiconifyback to summary
public void handleDeiconify()

Overrides sun.awt.X11.XWindowPeer.handleDeiconify.

Annotations
@Override
handleFocusEventback to summary
public void handleFocusEvent(XEvent xev)

Overrides sun.awt.X11.XWindowPeer.handleFocusEvent.

Annotations
@Override
handleIconifyback to summary
public void handleIconify()

Overrides sun.awt.X11.XWindowPeer.handleIconify.

Annotations
@Override
handleMovedback to summary
pack-priv void handleMoved(WindowDimensions dims)
handlePropertyNotifyback to summary
public void handlePropertyNotify(XEvent xev)

Overrides sun.awt.X11.XWindow.handlePropertyNotify.

Annotations
@Override
handleQuitback to summary
private void handleQuit()
handleReparentNotifyEventback to summary
public void handleReparentNotifyEvent(XEvent xev)

Overrides sun.awt.X11.XBaseWindow.handleReparentNotifyEvent.

Annotations
@Override
handleWindowFocusInback to summary
public void handleWindowFocusIn(long serial)

Overrides sun.awt.X11.XWindowPeer.handleWindowFocusIn.

Annotations
@Override
handleWindowFocusOutback to summary
public void handleWindowFocusOut(Window oppositeWindow, long serial)

Overrides sun.awt.X11.XWindowPeer.handleWindowFocusOut.

Annotations
@Override
handleWmTakeFocusback to summary
private void handleWmTakeFocus(XClientMessageEvent cl)
isEventDisabledback to summary
protected boolean isEventDisabled(XEvent e)

Overrides sun.awt.X11.XComponentPeer.isEventDisabled.

END OF I N S E T S C O D E

Annotations
@Override
isInitialReshapeback to summary
protected boolean isInitialReshape()

Overrides sun.awt.X11.XComponentPeer.isInitialReshape.

I N S E T S C O D E

Annotations
@Override
isMaximizedback to summary
pack-priv boolean isMaximized()
isNullback to summary
private static boolean isNull(Insets i)
isOverrideRedirectback to summary
pack-priv boolean isOverrideRedirect()

Overrides sun.awt.X11.XWindowPeer.isOverrideRedirect.

Annotations
@Override
isTargetUndecoratedback to summary
pack-priv abstract boolean isTargetUndecorated()
postInitback to summary
pack-priv void postInit(XCreateWindowParams params)

Overrides sun.awt.X11.XWindowPeer.postInit.

Doc from sun.awt.X11.XBaseWindow.postInit.

Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.

Annotations
@Override
preInitback to summary
pack-priv void preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XWindowPeer.preInit.

Doc from sun.awt.X11.XBaseWindow.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

Annotations
@Override
reconfigureContentWindowback to summary
pack-priv void reconfigureContentWindow(WindowDimensions dims)
requestWindowFocusback to summary
public boolean requestWindowFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XWindowPeer.requestWindowFocus.

Annotations
@Override
requestWindowFocusback to summary
pack-priv boolean requestWindowFocus(XWindowPeer actualFocusedWindow, long time, boolean timeProvided)
requestXFocusback to summary
protected void requestXFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XWindowPeer.requestXFocus.

Requests focus to this decorated top-level by requesting X input focus to the shell window.

Annotations
@Override
resetWMSetInsetsback to summary
private void resetWMSetInsets()
reshapeback to summary
private void reshape(WindowDimensions newDimensions, int op, boolean userReshape)
reshapeback to summary
private void reshape(int x, int y, int width, int height, int operation, boolean userReshape)
setActualFocusedWindowback to summary
pack-priv void setActualFocusedWindow(XWindowPeer actualFocusedWindow)

Overrides sun.awt.X11.XWindowPeer.setActualFocusedWindow.

Annotations
@Override
setBoundsback to summary
public void setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XWindowPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Doc from java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component. The location is specified relative to the component's parent. The op parameter specifies which properties change. If it is SET_LOCATION, then only the location changes (and the size parameters can be ignored). If op is SET_SIZE, then only the size changes (and the location can be ignored). If op is SET_BOUNDS, then both change. There is a special value SET_CLIENT_SIZE, which is used only for window-like components to set the size of the client (i.e. the 'inner' size, without the insets of the window borders).

Annotations
@Override
See Also
java.awt.peer.ComponentPeer#setBounds
setIconHintsback to summary
pack-priv void setIconHints(List<IconInfo> icons)

Overrides sun.awt.X11.XWindowPeer.setIconHints.

Annotations
@Override
setResizableback to summary
public void setResizable(boolean resizable)
setShellBoundsback to summary
private void setShellBounds(Rectangle rec)
setShellPositionback to summary
private void setShellPosition(Rectangle rec)
setShellSizeback to summary
private void setShellSize(Rectangle rec)
setTitleback to summary
public void setTitle(String title)
setVisibleback to summary
public void setVisible(boolean vis)

Overrides sun.awt.X11.XWindowPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Doc from java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

Annotations
@Override
suppressWmTakeFocusback to summary
protected void suppressWmTakeFocus(boolean doSuppress)

Overrides sun.awt.X11.XWindowPeer.suppressWmTakeFocus.

Annotations
@Override
updateMinimumSizeback to summary
public void updateMinimumSize()

Overrides sun.awt.X11.XWindowPeer.updateMinimumSize.

Implements java.awt.peer.WindowPeer.updateMinimumSize.

Doc from java.awt.peer.WindowPeer.updateMinimumSize.

Updates the minimum size on the peer.

Annotations
@Override
updateMinSizeHintsback to summary
private void updateMinSizeHints()
updateSizeHintsback to summary
pack-priv void updateSizeHints(WindowDimensions dims)
updateSizeHintsback to summary
pack-priv void updateSizeHints()

Overrides sun.awt.X11.XWindow.updateSizeHints.

Annotations
@Override
updateWMNameback to summary
pack-priv void updateWMName()

Overrides sun.awt.X11.XBaseWindow.updateWMName.

Annotations
@Override