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

public final Class XEmbedChildProxyPeer

extends Object
implements ComponentPeer, XEventDispatcher
Class Inheritance
All Implemented Interfaces
sun.awt.X11.XEventDispatcher, java.awt.peer.ComponentPeer
Imports
java.awt.AWTEvent, .AWTException, .BufferCapabilities, .Color, .Component, .Container, .Dimension, .Font, .FontMetrics, .Graphics, .GraphicsConfiguration, .Image, .Point, .Rectangle, .Toolkit, .Window, java.awt.event.ComponentEvent, .FocusEvent, .InputEvent, .InvocationEvent, .KeyEvent, .PaintEvent, java.awt.image.ColorModel, .VolatileImage, java.awt.peer.ComponentPeer, .ContainerPeer, sun.java2d.pipe.Region

Field Summary

Modifier and TypeField and Description
pack-priv XEmbeddingContainer
pack-priv long
pack-priv XEmbedChildProxy

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
applyShape(Region shape)

Implements java.awt.peer.ComponentPeer.applyShape.

Applies the shape to the native component window.

public boolean
canDetermineObscurity()

Implements java.awt.peer.ComponentPeer.canDetermineObscurity.

Returns true when the peer can determine if a component has been obscured, false false otherwise.

pack-priv void
public void
coalescePaintEvent(PaintEvent e)

Implements java.awt.peer.ComponentPeer.coalescePaintEvent.

Called to coalesce paint events.

public void
createBuffers(int numBuffers, BufferCapabilities caps)

Implements java.awt.peer.ComponentPeer.createBuffers.

Create numBuffers flipping buffers with the specified buffer capabilities.

public Image
createImage(int width, int height)

Implements java.awt.peer.ComponentPeer.createImage.

Creates an empty image with the specified width and height.

public VolatileImage
createVolatileImage(int width, int height)

Implements java.awt.peer.ComponentPeer.createVolatileImage.

Creates an empty volatile image with the specified width and height.

public void
destroyBuffers()

Implements java.awt.peer.ComponentPeer.destroyBuffers.

Destroys all created buffers.

public void
public void
dispose()

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

public void
flip(int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction)

Implements java.awt.peer.ComponentPeer.flip.

Move the back buffer to the front buffer.

public Image
getBackBuffer()

Implements java.awt.peer.ComponentPeer.getBackBuffer.

Returns the back buffer as image.

public Rectangle
public ColorModel
getColorModel()

Implements java.awt.peer.ComponentPeer.getColorModel.

Returns the color model used by the component.

public FontMetrics
getFontMetrics(Font font)

Implements java.awt.peer.ComponentPeer.getFontMetrics.

Returns a font metrics object to determine the metrics properties of the specified font.

public Graphics
getGraphics()

Implements java.awt.peer.ComponentPeer.getGraphics.

Returns a graphics object to paint on the component.

public GraphicsConfiguration
getGraphicsConfiguration()

Implements java.awt.peer.ComponentPeer.getGraphicsConfiguration.

Returns the graphics configuration that corresponds to this component.

public Point
getLocationOnScreen()

Implements java.awt.peer.ComponentPeer.getLocationOnScreen.

Determines the location of the component on the screen.

public Dimension
getMinimumSize()

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

public Dimension
getPreferredSize()

Implements java.awt.peer.ComponentPeer.getPreferredSize.

Determines the preferred size of the component.

public Toolkit
pack-priv Window
pack-priv void
public void
handleEvent(AWTEvent e)

Implements java.awt.peer.ComponentPeer.handleEvent.

Called to let the component peer handle events.

pack-priv void
public boolean
handlesWheelScrolling()

Implements java.awt.peer.ComponentPeer.handlesWheelScrolling.

Determines if the component handles wheel scrolling itself.

pack-priv void
public boolean
isFocusable()

Implements java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

public boolean
isObscured()

Implements java.awt.peer.ComponentPeer.isObscured.

Determines if a component has been obscured, i.e. by an overlapping window or similar.

public boolean
isReparentSupported()

Implements java.awt.peer.ComponentPeer.isReparentSupported.

Returns whether this peer supports reparenting to another parent without destroying the peer.

public void
layout()

Implements java.awt.peer.ComponentPeer.layout.

Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements.

public void
paint(Graphics g)

Implements java.awt.peer.ComponentPeer.paint.

Paints the component to the specified graphics context.

pack-priv void
public void
reparent(ContainerPeer newNativeParent)

Implements java.awt.peer.ComponentPeer.reparent.

Reparents this peer to the new parent referenced by newContainer peer.

public boolean
requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, FocusEvent.Cause cause)

Implements java.awt.peer.ComponentPeer.requestFocus.

Requests focus on this component.

pack-priv void
public void
setBackground(Color c)

Implements java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

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

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

public void
setBoundsOperation(int operation)

public void
setEnabled(boolean b)

Implements java.awt.peer.ComponentPeer.setEnabled.

Enables or disables a component.

public void
setFont(Font f)

Implements java.awt.peer.ComponentPeer.setFont.

Sets the font of this component.

public void
setForeground(Color c)

Implements java.awt.peer.ComponentPeer.setForeground.

Sets the foreground color of this component.

public void
setVisible(boolean b)

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

public void
setZOrder(ComponentPeer above)

Implements java.awt.peer.ComponentPeer.setZOrder.

Lowers this component at the bottom of the above HW peer.

pack-priv boolean
simulateMotifRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)

public void
updateCursorImmediately()

Implements java.awt.peer.ComponentPeer.updateCursorImmediately.

Updates the cursor of the component.

public boolean
updateGraphicsData(GraphicsConfiguration gc)

Implements java.awt.peer.ComponentPeer.updateGraphicsData.

Updates internal data structures related to the component's GC.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

containerback to summary
pack-priv XEmbeddingContainer container
handleback to summary
pack-priv long handle
proxyback to summary
pack-priv XEmbedChildProxy proxy

Constructor Detail

XEmbedChildProxyPeerback to summary
pack-priv XEmbedChildProxyPeer(XEmbedChildProxy proxy)

Method Detail

applyShapeback to summary
public void applyShape(Region shape)

Implements java.awt.peer.ComponentPeer.applyShape.

Doc from java.awt.peer.ComponentPeer.applyShape.

Applies the shape to the native component window.

Annotations
@Override
canDetermineObscurityback to summary
public boolean canDetermineObscurity()

Implements java.awt.peer.ComponentPeer.canDetermineObscurity.

Doc from java.awt.peer.ComponentPeer.canDetermineObscurity.

Returns true when the peer can determine if a component has been obscured, false false otherwise.

Annotations
@Override
childResizedback to summary
pack-priv void childResized()
coalescePaintEventback to summary
public void coalescePaintEvent(PaintEvent e)

Implements java.awt.peer.ComponentPeer.coalescePaintEvent.

Doc from java.awt.peer.ComponentPeer.coalescePaintEvent.

Called to coalesce paint events.

Annotations
@Override
createBuffersback to summary
public void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException

Implements java.awt.peer.ComponentPeer.createBuffers.

Doc from java.awt.peer.ComponentPeer.createBuffers.

Create numBuffers flipping buffers with the specified buffer capabilities.

Annotations
@Override
Exceptions
AWTException:
if flip buffering is not supported
createImageback to summary
public Image createImage(int width, int height)

Implements java.awt.peer.ComponentPeer.createImage.

Doc from java.awt.peer.ComponentPeer.createImage.

Creates an empty image with the specified width and height. This is generally used as a non-accelerated backbuffer for drawing onto the component (e.g. by Swing).

Annotations
@Override
createVolatileImageback to summary
public VolatileImage createVolatileImage(int width, int height)

Implements java.awt.peer.ComponentPeer.createVolatileImage.

Doc from java.awt.peer.ComponentPeer.createVolatileImage.

Creates an empty volatile image with the specified width and height. This is generally used as an accelerated backbuffer for drawing onto the component (e.g. by Swing).

Annotations
@Override
destroyBuffersback to summary
public void destroyBuffers()

Implements java.awt.peer.ComponentPeer.destroyBuffers.

Doc from java.awt.peer.ComponentPeer.destroyBuffers.

Destroys all created buffers.

Annotations
@Override
dispatchEventback to summary
public void dispatchEvent(XEvent xev)

Implements sun.awt.X11.XEventDispatcher.dispatchEvent.

Annotations
@Override
disposeback to summary
public void 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
flipback to summary
public void flip(int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction)

Implements java.awt.peer.ComponentPeer.flip.

Doc from java.awt.peer.ComponentPeer.flip.

Move the back buffer to the front buffer.

Annotations
@Override
getBackBufferback to summary
public Image getBackBuffer()

Implements java.awt.peer.ComponentPeer.getBackBuffer.

Doc from java.awt.peer.ComponentPeer.getBackBuffer.

Returns the back buffer as image.

Annotations
@Override
getBoundsback to summary
public Rectangle getBounds()
getColorModelback to summary
public ColorModel getColorModel()

Implements java.awt.peer.ComponentPeer.getColorModel.

Doc from java.awt.peer.ComponentPeer.getColorModel.

Returns the color model used by the component.

Annotations
@Override
getFontMetricsback to summary
public FontMetrics getFontMetrics(Font font)

Implements java.awt.peer.ComponentPeer.getFontMetrics.

Doc from java.awt.peer.ComponentPeer.getFontMetrics.

Returns a font metrics object to determine the metrics properties of the specified font.

Annotations
@Override
getGraphicsback to summary
public Graphics getGraphics()

Implements java.awt.peer.ComponentPeer.getGraphics.

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

Returns a graphics object to paint on the component.

Annotations
@Override
getGraphicsConfigurationback to summary
public GraphicsConfiguration getGraphicsConfiguration()

Implements java.awt.peer.ComponentPeer.getGraphicsConfiguration.

Doc from java.awt.peer.ComponentPeer.getGraphicsConfiguration.

Returns the graphics configuration that corresponds to this component.

Annotations
@Override
getLocationOnScreenback to summary
public Point 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
getMinimumSizeback to summary
public Dimension getMinimumSize()

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Doc from java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize()

Implements java.awt.peer.ComponentPeer.getPreferredSize.

Doc from java.awt.peer.ComponentPeer.getPreferredSize.

Determines the preferred size of the component.

Annotations
@Override
getToolkitback to summary
public Toolkit getToolkit()
getTopLevelback to summary
pack-priv Window getTopLevel(Component comp)
handleConfigureNotifyback to summary
pack-priv void handleConfigureNotify(XEvent xev)
handleEventback to summary
public void handleEvent(AWTEvent e)

Implements java.awt.peer.ComponentPeer.handleEvent.

Doc from java.awt.peer.ComponentPeer.handleEvent.

Called to let the component peer handle events.

Annotations
@Override
handlePropertyNotifyback to summary
pack-priv void handlePropertyNotify(XEvent xev)
handlesWheelScrollingback to summary
public boolean handlesWheelScrolling()

Implements java.awt.peer.ComponentPeer.handlesWheelScrolling.

Doc from java.awt.peer.ComponentPeer.handlesWheelScrolling.

Determines if the component handles wheel scrolling itself. Otherwise it is delegated to the component's parent.

Annotations
@Override
initDispatchingback to summary
pack-priv void initDispatching()
isFocusableback to summary
public boolean isFocusable()

Implements java.awt.peer.ComponentPeer.isFocusable.

Doc from java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

Annotations
@Override
isObscuredback to summary
public boolean isObscured()

Implements java.awt.peer.ComponentPeer.isObscured.

Doc from java.awt.peer.ComponentPeer.isObscured.

Determines if a component has been obscured, i.e. by an overlapping window or similar. This is used by JViewport for optimizing performance. This doesn't have to be implemented, when canDetermineObscurity() returns false.

Annotations
@Override
isReparentSupportedback to summary
public boolean isReparentSupported()

Implements java.awt.peer.ComponentPeer.isReparentSupported.

Doc from java.awt.peer.ComponentPeer.isReparentSupported.

Returns whether this peer supports reparenting to another parent without destroying the peer.

Annotations
@Override
layoutback to summary
public void layout()

Implements java.awt.peer.ComponentPeer.layout.

Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. For instance, a lightweight Checkbox needs to layout the box, as well as the text label.

Annotations
@Override
paintback to summary
public void paint(Graphics g)

Implements java.awt.peer.ComponentPeer.paint.

Doc from java.awt.peer.ComponentPeer.paint.

Paints the component to the specified graphics context. This is called by Component#paintAll(Graphics) to paint the component.

Annotations
@Override
postEventback to summary
pack-priv void postEvent(AWTEvent event)
reparentback to summary
public void reparent(ContainerPeer newNativeParent)

Implements java.awt.peer.ComponentPeer.reparent.

Doc from java.awt.peer.ComponentPeer.reparent.

Reparents this peer to the new parent referenced by newContainer peer. Implementation depends on toolkit and container.

Annotations
@Override
requestFocusback to summary
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, FocusEvent.Cause cause)

Implements java.awt.peer.ComponentPeer.requestFocus.

Doc from java.awt.peer.ComponentPeer.requestFocus.

Requests focus on this component.

Annotations
@Override
requestXEmbedFocusback to summary
pack-priv void requestXEmbedFocus()
setBackgroundback to summary
public void setBackground(Color c)

Implements java.awt.peer.ComponentPeer.setBackground.

Doc from java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

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

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
setBoundsOperationback to summary
public void setBoundsOperation(int operation)
setEnabledback to summary
public void setEnabled(boolean b)

Implements java.awt.peer.ComponentPeer.setEnabled.

Doc from java.awt.peer.ComponentPeer.setEnabled.

Enables or disables a component. Disabled components are usually grayed out and cannot be activated.

Annotations
@Override
setFontback to summary
public void setFont(Font f)

Implements java.awt.peer.ComponentPeer.setFont.

Doc from java.awt.peer.ComponentPeer.setFont.

Sets the font of this component.

Annotations
@Override
setForegroundback to summary
public void setForeground(Color c)

Implements java.awt.peer.ComponentPeer.setForeground.

Doc from java.awt.peer.ComponentPeer.setForeground.

Sets the foreground color of this component.

Annotations
@Override
setVisibleback to summary
public void setVisible(boolean b)

Implements java.awt.peer.ComponentPeer.setVisible.

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

Makes a component visible or invisible.

Annotations
@Override
setZOrderback to summary
public void setZOrder(ComponentPeer above)

Implements java.awt.peer.ComponentPeer.setZOrder.

Doc from java.awt.peer.ComponentPeer.setZOrder.

Lowers this component at the bottom of the above HW peer. If the above parameter is null then the method places this component at the top of the Z-order.

Annotations
@Override
simulateMotifRequestFocusback to summary
pack-priv boolean simulateMotifRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)
updateCursorImmediatelyback to summary
public void updateCursorImmediately()

Implements java.awt.peer.ComponentPeer.updateCursorImmediately.

Doc from java.awt.peer.ComponentPeer.updateCursorImmediately.

Updates the cursor of the component.

Annotations
@Override
updateGraphicsDataback to summary
public boolean updateGraphicsData(GraphicsConfiguration gc)

Implements java.awt.peer.ComponentPeer.updateGraphicsData.

Doc from java.awt.peer.ComponentPeer.updateGraphicsData.

Updates internal data structures related to the component's GC.

Annotations
@Override