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

pack-priv Class XFramePeer

extends XDecoratedPeer
implements FramePeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.FramePeer, java.awt.peer.WindowPeer, java.awt.peer.ContainerPeer, java.awt.peer.ComponentPeer
Known Direct Subclasses
sun.awt.X11.XLightweightFramePeer, sun.awt.X11.XEmbeddedFramePeer
Imports
java.awt.Color, .Dimension, .Font, .FontMetrics, .Frame, .Graphics, .Insets, .MenuBar, .Rectangle, java.awt.peer.FramePeer, sun.awt.SunToolkit, .AWTAccessor, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private static PlatformLogger
private int
private static PlatformLogger
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv int
private static PlatformLogger
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private Boolean
pack-priv static final int
Inherited from sun.awt.X11.XDecoratedPeer:
actualFocusedWindowconfigure_seencontentcurrentInsetsdimensionsfocusProxyiconWindowinsets_correctedlastKnownInsetsMWM_DECOR_TITLE_PROPERTY_NAMEno_reparent_artifactsreparent_serial

Constructor Summary

AccessConstructor and Description
pack-priv
XFramePeer(Frame target)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
changeState(int newState)

public void
dispose()

Overrides sun.awt.X11.XDecoratedPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

public void
emulateActivation(boolean doActivate)

Implements java.awt.peer.FramePeer.emulateActivation.

Requests the peer to emulate window activation.

public Rectangle
getBoundsPrivate()

Implements java.awt.peer.FramePeer.getBoundsPrivate.

Returns the size and location for embedded frames.

pack-priv int
pack-priv XMenuBarPeer
public int
getState()

Implements java.awt.peer.FramePeer.getState.

Returns the current state of the frame.

private int
public void
public void
handleStateChange(int oldState, int newState)

Overrides sun.awt.X11.XWindowPeer.handleStateChange.

pack-priv boolean
pack-priv boolean
pack-priv void
postInit(XCreateWindowParams params)

Overrides sun.awt.X11.XDecoratedPeer.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.XDecoratedPeer.preInit.

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

private void
pack-priv final void
reshapeMenubarPeer()

In addition to reshaping menubarPeer (by using 'updateChildrenSizes') this method also performs some frame reaction on this (i.e. layouts other frame children, if required)

public void
setBoundsPrivate(int x, int y, int width, int height)

Implements java.awt.peer.FramePeer.setBoundsPrivate.

Sets the size and location for embedded frames.

pack-priv void
setExtendedState(int newState)

pack-priv void
setInitialState(int wm_state)

public void
setMaximizedBounds(Rectangle b)

Implements java.awt.peer.FramePeer.setMaximizedBounds.

Sets the bounds of the frame when it becomes maximized.

public void
setMenuBar(MenuBar mb)

Implements java.awt.peer.FramePeer.setMenuBar.

Sets the menu bar for the frame.

public void
setState(int newState)

Implements java.awt.peer.FramePeer.setState.

Changes the state of the frame.

pack-priv void
setupState(boolean onInit)

public void
setVisible(boolean vis)

Overrides sun.awt.X11.XDecoratedPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

public void
toFront()

Overrides sun.awt.X11.XWindowPeer.toFront.

Implements java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

pack-priv void
Inherited from sun.awt.X11.XDecoratedPeer:
createFocusProxydumpAlldumpContentdumpMedumpParentdumpShelldumpTargetdumpWindowgetAbsoluteXgetAbsoluteYgetBoundsgetContentWindowgetDecorationsgetDimensionsgetFocusProxygetFunctionsgetGraphicsgetHeightgetInputMethodHeightgetInsetsgetLocationgetLocationOnScreengetMWMDecorTitlePropertygetShellgetShellBoundsgetSizegetWidthgetWindowTitleVisiblegetWMNamegetWMProtocolsgetXgetYgravityBughandleClientMessagehandleConfigureNotifyEventhandleDeiconifyhandleFocusEventhandleIconifyhandleMovedhandleReparentNotifyEventhandleWindowFocusInhandleWindowFocusOutisEventDisabledisInitialReshapeisOverrideRedirectreconfigureContentWindowrequestWindowFocusrequestWindowFocusrequestXFocussetActualFocusedWindowsetBoundssetIconHintssetResizablesetTitlesuppressWmTakeFocusupdateMinimumSizeupdateSizeHintsupdateSizeHintsupdateWMName

Field Detail

BUTTON_Hback to summary
pack-priv static final int BUTTON_H
BUTTON_Wback to summary
pack-priv static final int BUTTON_W
BUTTON_Yback to summary
pack-priv static final int BUTTON_Y
CROSSHAIR_INSETback to summary
pack-priv static final int CROSSHAIR_INSET
HORIZ_RESIZE_INSETback to summary
pack-priv static final int HORIZ_RESIZE_INSET
insLogback to summary
private static PlatformLogger insLog

Hides sun.awt.X11.XDecoratedPeer.insLog.

lastAppliedMenubarHeightback to summary
private int lastAppliedMenubarHeight
logback to summary
private static PlatformLogger log

Hides sun.awt.X11.XDecoratedPeer.log.

MAXIMIZE_CONTAINED_Hback to summary
pack-priv static final int MAXIMIZE_CONTAINED_H
MAXIMIZE_CONTAINED_Wback to summary
pack-priv static final int MAXIMIZE_CONTAINED_W
MAXIMIZE_CONTAINED_X_DIFFback to summary
pack-priv static final int MAXIMIZE_CONTAINED_X_DIFF
MAXIMIZE_CONTAINED_Yback to summary
pack-priv static final int MAXIMIZE_CONTAINED_Y
MAXIMIZE_X_DIFFback to summary
pack-priv static final int MAXIMIZE_X_DIFF
MINIMIZE_CONTAINED_Hback to summary
pack-priv static final int MINIMIZE_CONTAINED_H
MINIMIZE_CONTAINED_Wback to summary
pack-priv static final int MINIMIZE_CONTAINED_W
MINIMIZE_CONTAINED_X_DIFFback to summary
pack-priv static final int MINIMIZE_CONTAINED_X_DIFF
MINIMIZE_CONTAINED_Yback to summary
pack-priv static final int MINIMIZE_CONTAINED_Y
MINIMIZE_X_DIFFback to summary
pack-priv static final int MINIMIZE_X_DIFF
stateback to summary
pack-priv int state
stateLogback to summary
private static PlatformLogger stateLog
SYS_MENU_CONTAINED_Hback to summary
pack-priv static final int SYS_MENU_CONTAINED_H
SYS_MENU_CONTAINED_Wback to summary
pack-priv static final int SYS_MENU_CONTAINED_W
SYS_MENU_CONTAINED_Xback to summary
pack-priv static final int SYS_MENU_CONTAINED_X
SYS_MENU_CONTAINED_Yback to summary
pack-priv static final int SYS_MENU_CONTAINED_Y
SYS_MENU_Xback to summary
pack-priv static final int SYS_MENU_X
TITLE_MID_Yback to summary
pack-priv static final int TITLE_MID_Y
TITLE_W_DIFFback to summary
pack-priv static final int TITLE_W_DIFF
TITLE_Xback to summary
pack-priv static final int TITLE_X
undecoratedback to summary
private Boolean undecorated
VERT_RESIZE_INSETback to summary
pack-priv static final int VERT_RESIZE_INSET

Constructor Detail

XFramePeerback to summary
pack-priv XFramePeer(Frame target)
XFramePeerback to summary
pack-priv XFramePeer(XCreateWindowParams params)

Method Detail

changeStateback to summary
pack-priv void changeState(int newState)
disposeback to summary
public void dispose()

Overrides sun.awt.X11.XDecoratedPeer.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
emulateActivationback to summary
public void emulateActivation(boolean doActivate)

Implements java.awt.peer.FramePeer.emulateActivation.

Doc from java.awt.peer.FramePeer.emulateActivation.

Requests the peer to emulate window activation.

Annotations
@Override
getBoundsPrivateback to summary
public Rectangle getBoundsPrivate()

Implements java.awt.peer.FramePeer.getBoundsPrivate.

Doc from java.awt.peer.FramePeer.getBoundsPrivate.

Returns the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.

Annotations
@Override
getMenuBarHeightback to summary
pack-priv int getMenuBarHeight()

Overrides sun.awt.X11.XWindowPeer.getMenuBarHeight.

Annotations
@Override
getMenubarPeerback to summary
pack-priv XMenuBarPeer getMenubarPeer()
getStateback to summary
public int getState()

Implements java.awt.peer.FramePeer.getState.

Doc from java.awt.peer.FramePeer.getState.

Returns the current state of the frame.

Annotations
@Override
getWindowDecorationBitsback to summary
private int getWindowDecorationBits()
handlePropertyNotifyback to summary
public void handlePropertyNotify(XEvent xev)

Overrides sun.awt.X11.XDecoratedPeer.handlePropertyNotify.

Annotations
@Override
handleStateChangeback to summary
public void handleStateChange(int oldState, int newState)

Overrides sun.awt.X11.XWindowPeer.handleStateChange.

Annotations
@Override
isMaximizedback to summary
pack-priv boolean isMaximized()

Overrides sun.awt.X11.XDecoratedPeer.isMaximized.

Annotations
@Override
isTargetUndecoratedback to summary
pack-priv boolean isTargetUndecorated()

Implements abstract sun.awt.X11.XDecoratedPeer.isTargetUndecorated.

Annotations
@Override
postInitback to summary
pack-priv void postInit(XCreateWindowParams params)

Overrides sun.awt.X11.XDecoratedPeer.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.XDecoratedPeer.preInit.

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

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

Annotations
@Override
registerWindowDecorationChangeListenerback to summary
private void registerWindowDecorationChangeListener()
reshapeMenubarPeerback to summary
pack-priv final void reshapeMenubarPeer()

In addition to reshaping menubarPeer (by using 'updateChildrenSizes') this method also performs some frame reaction on this (i.e. layouts other frame children, if required)

setBoundsPrivateback to summary
public void setBoundsPrivate(int x, int y, int width, int height)

Implements java.awt.peer.FramePeer.setBoundsPrivate.

Doc from java.awt.peer.FramePeer.setBoundsPrivate.

Sets the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.

Annotations
@Override
setExtendedStateback to summary
pack-priv void setExtendedState(int newState)
setInitialStateback to summary
pack-priv void setInitialState(int wm_state)
setMaximizedBoundsback to summary
public void setMaximizedBounds(Rectangle b)

Implements java.awt.peer.FramePeer.setMaximizedBounds.

Doc from java.awt.peer.FramePeer.setMaximizedBounds.

Sets the bounds of the frame when it becomes maximized.

Annotations
@Override
setMenuBarback to summary
public void setMenuBar(MenuBar mb)

Implements java.awt.peer.FramePeer.setMenuBar.

Doc from java.awt.peer.FramePeer.setMenuBar.

Sets the menu bar for the frame.

Annotations
@Override
setStateback to summary
public void setState(int newState)

Implements java.awt.peer.FramePeer.setState.

Doc from java.awt.peer.FramePeer.setState.

Changes the state of the frame.

Annotations
@Override
setupStateback to summary
pack-priv void setupState(boolean onInit)
setVisibleback to summary
public void setVisible(boolean vis)

Overrides sun.awt.X11.XDecoratedPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

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

Makes a component visible or invisible.

Annotations
@Override
toFrontback to summary
public void toFront()

Overrides sun.awt.X11.XWindowPeer.toFront.

Implements java.awt.peer.WindowPeer.toFront.

Doc from java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

Annotations
@Override
updateChildrenSizesback to summary
pack-priv void updateChildrenSizes()

Overrides sun.awt.X11.XWindowPeer.updateChildrenSizes.

Annotations
@Override