FileDocCategorySizeDatePackage
ComponentPeer.javaAPI DocJava SE 5 API4152Fri Aug 26 14:56:56 BST 2005java.awt.peer

ComponentPeer

public interface ComponentPeer
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.

Fields Summary
public static final int
SET_LOCATION
public static final int
SET_SIZE
public static final int
SET_BOUNDS
public static final int
SET_CLIENT_SIZE
public static final int
RESET_OPERATION
public static final int
NO_EMBEDDED_CHECK
public static final int
DEFAULT_OPERATION
Constructors Summary
Methods Summary
public booleancanDetermineObscurity()

public intcheckImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)

public voidcoalescePaintEvent(java.awt.event.PaintEvent e)

public voidcreateBuffers(int numBuffers, java.awt.BufferCapabilities caps)

public java.awt.ImagecreateImage(java.awt.image.ImageProducer producer)

public java.awt.ImagecreateImage(int width, int height)

public java.awt.image.VolatileImagecreateVolatileImage(int width, int height)

public voiddestroyBuffers()

public voiddisable()
DEPRECATED: Replaced by setEnabled(boolean).

public voiddispose()

public voidenable()
DEPRECATED: Replaced by setEnabled(boolean).

public voidflip(java.awt.BufferCapabilities$FlipContents flipAction)

public java.awt.ImagegetBackBuffer()

public java.awt.RectanglegetBounds()

public java.awt.image.ColorModelgetColorModel()

public java.awt.FontMetricsgetFontMetrics(java.awt.Font font)

public java.awt.GraphicsgetGraphics()

public java.awt.GraphicsConfigurationgetGraphicsConfiguration()

public java.awt.PointgetLocationOnScreen()

public java.awt.DimensiongetMinimumSize()

public java.awt.DimensiongetPreferredSize()

public java.awt.ToolkitgetToolkit()

public voidhandleEvent(java.awt.AWTEvent e)

public booleanhandlesWheelScrolling()

public voidhide()
DEPRECATED: Replaced by setVisible(boolean).

public booleanisFocusable()

public booleanisObscured()

public booleanisReparentSupported()
Returns whether this peer supports reparenting to another parent withour destroying the peer

return
true if appropriate reparent is supported, false otherwise
since
1.5

public voidlayout()
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.

public java.awt.DimensionminimumSize()
DEPRECATED: Replaced by getMinimumSize().

public voidpaint(java.awt.Graphics g)

public java.awt.DimensionpreferredSize()
DEPRECATED: Replaced by getPreferredSize().

public booleanprepareImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)

public voidprint(java.awt.Graphics g)

public voidrepaint(long tm, int x, int y, int width, int height)

public voidreparent(java.awt.peer.ContainerPeer newContainer)
Reparents this peer to the new parent referenced by newContainer peer Implementation depends on toolkit and container.

param
newContainer peer of the new parent container
since
1.5

public booleanrequestFocus(java.awt.Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)

public voidreshape(int x, int y, int width, int height)
DEPRECATED: Replaced by setBounds(int, int, int, int).

public voidsetBackground(java.awt.Color c)

public voidsetBounds(int x, int y, int width, int height, int op)

public voidsetEnabled(boolean b)

public voidsetFont(java.awt.Font f)

public voidsetForeground(java.awt.Color c)

public voidsetVisible(boolean b)

public voidshow()
DEPRECATED: Replaced by setVisible(boolean).

public voidupdateCursorImmediately()