Top Description Methods
java.awt.peer

public Interface WindowPeer

extends ContainerPeer
Known Direct Subinterfaces
java.awt.peer.DialogPeer, java.awt.peer.FramePeer
Known Direct Implementers
sun.awt.X11.XWindowPeer
Imports
java.awt.*

The peer interface for Window. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public GraphicsConfiguration

Returns:

a graphics configuration that best suits this Window
getAppropriateGraphicsConfiguration
(GraphicsConfiguration
the requested graphics configuration
gc
)

Requests a GC that best suits this Window.

public void
repositionSecurityWarning()

Instructs the peer to update the position of the security warning.

public void
setModalBlocked(Dialog
the blocking modal dialog
blocker
,
boolean
true to block the window, false to unblock it
blocked
)

Sets if this window is blocked by a modal dialog or not.

public void
setOpacity(float
the level of opacity
opacity
)

Sets the level of opacity for the window.

public void
setOpaque(boolean
whether or not per-pixel alpha support is enabled
isOpaque
)

Enables the per-pixel alpha support for the window.

public void
toBack()

Makes this window the bottommost window on the desktop.

public void
toFront()

Makes this window the topmost window on the desktop.

public void
updateAlwaysOnTopState()

Updates the window's always-on-top state.

public void
updateFocusableWindowState()

Updates the window's focusable state.

public void
updateIconImages()

Updates the icons for the window.

public void
updateMinimumSize()

Updates the minimum size on the peer.

public void
updateWindow()

Updates the native part of non-opaque window.

Inherited from java.awt.peer.ContainerPeer:
beginLayoutbeginValidateendLayoutendValidategetInsets

Method Detail

getAppropriateGraphicsConfigurationback to summary
public GraphicsConfiguration getAppropriateGraphicsConfiguration(GraphicsConfiguration gc)

Requests a GC that best suits this Window. The returned GC may differ from the requested GC passed as the argument to this method. This method must return a non-null value (given the argument is non-null as well).

Parameters
gc:GraphicsConfiguration

the requested graphics configuration

Returns:GraphicsConfiguration

a graphics configuration that best suits this Window

repositionSecurityWarningback to summary
public void repositionSecurityWarning()

Instructs the peer to update the position of the security warning.

setModalBlockedback to summary
public void setModalBlocked(Dialog blocker, boolean blocked)

Sets if this window is blocked by a modal dialog or not.

Parameters
blocker:Dialog

the blocking modal dialog

blocked:boolean

true to block the window, false to unblock it

setOpacityback to summary
public void setOpacity(float opacity)

Sets the level of opacity for the window.

Parameters
opacity:float

the level of opacity

See Also
Window#setOpacity(float)
setOpaqueback to summary
public void setOpaque(boolean isOpaque)

Enables the per-pixel alpha support for the window.

Parameters
isOpaque:boolean

whether or not per-pixel alpha support is enabled

See Also
Window#setBackground(Color)
toBackback to summary
public void toBack()

Makes this window the bottommost window on the desktop.

See Also
Window#toBack()
toFrontback to summary
public void toFront()

Makes this window the topmost window on the desktop.

See Also
Window#toFront()
updateAlwaysOnTopStateback to summary
public void updateAlwaysOnTopState()

Updates the window's always-on-top state. Sets if the window should always stay on top of all other windows or not.

See Also
Window#isAlwaysOnTop(), Window#setAlwaysOnTop(boolean)
updateFocusableWindowStateback to summary
public void updateFocusableWindowState()

Updates the window's focusable state.

See Also
Window#setFocusableWindowState(boolean)
updateIconImagesback to summary
public void updateIconImages()

Updates the icons for the window.

See Also
Window#setIconImages(java.util.List)
updateMinimumSizeback to summary
public void updateMinimumSize()

Updates the minimum size on the peer.

See Also
Window#setMinimumSize(Dimension)
updateWindowback to summary
public void updateWindow()

Updates the native part of non-opaque window.

See Also
Window#setBackground(Color)