| java.awt.peer.ComponentPeer
ComponentPeer | public interface ComponentPeer (Code) | | 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 | |
boolean | canDetermineObscurity() | int | checkImage(Image img, int w, int h, ImageObserver o) | void | coalescePaintEvent(PaintEvent e) | void | createBuffers(int numBuffers, BufferCapabilities caps) | Image | createImage(ImageProducer producer) | Image | createImage(int width, int height) | VolatileImage | createVolatileImage(int width, int height) | void | destroyBuffers() | void | disable() DEPRECATED: Replaced by setEnabled(boolean). | void | dispose() | void | enable() DEPRECATED: Replaced by setEnabled(boolean). | void | flip(BufferCapabilities.FlipContents flipAction) | Image | getBackBuffer() | Rectangle | getBounds() | ColorModel | getColorModel() | FontMetrics | getFontMetrics(Font font) | Graphics | getGraphics() | GraphicsConfiguration | getGraphicsConfiguration() | Point | getLocationOnScreen() | Dimension | getMinimumSize() | Dimension | getPreferredSize() | Toolkit | getToolkit() | void | handleEvent(AWTEvent e) | boolean | handlesWheelScrolling() | void | hide() DEPRECATED: Replaced by setVisible(boolean). | boolean | isFocusable() | boolean | isObscured() | boolean | isReparentSupported() | void | layout() Used by lightweight implementations to tell a ComponentPeer to layout
its sub-elements. | Dimension | minimumSize() DEPRECATED: Replaced by getMinimumSize(). | void | paint(Graphics g) | Dimension | preferredSize() DEPRECATED: Replaced by getPreferredSize(). | boolean | prepareImage(Image img, int w, int h, ImageObserver o) | void | print(Graphics g) | void | repaint(long tm, int x, int y, int width, int height) | void | reparent(ContainerPeer newContainer) Reparents this peer to the new parent referenced by newContainer peer
Implementation depends on toolkit and container. | boolean | requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause) | void | reshape(int x, int y, int width, int height) DEPRECATED: Replaced by setBounds(int, int, int, int). | void | setBackground(Color c) | void | setBounds(int x, int y, int width, int height, int op) | void | setEnabled(boolean b) | void | setFont(Font f) | void | setForeground(Color c) | void | setVisible(boolean b) | void | show() DEPRECATED: Replaced by setVisible(boolean). | void | updateCursorImmediately() |
SET_LOCATIONSET_SIZESET_BOUNDSSET_CLIENT_SIZERESET_OPERATIONNO_EMBEDDED_CHECKDEFAULT_OPERATION | final public static int SET_LOCATIONSET_SIZESET_BOUNDSSET_CLIENT_SIZERESET_OPERATIONNO_EMBEDDED_CHECKDEFAULT_OPERATION(Code) | | |
canDetermineObscurity | boolean canDetermineObscurity()(Code) | | |
createImage | Image createImage(int width, int height)(Code) | | |
destroyBuffers | void destroyBuffers()(Code) | | |
disable | void disable()(Code) | | DEPRECATED: Replaced by setEnabled(boolean).
|
enable | void enable()(Code) | | DEPRECATED: Replaced by setEnabled(boolean).
|
handlesWheelScrolling | boolean handlesWheelScrolling()(Code) | | |
hide | void hide()(Code) | | DEPRECATED: Replaced by setVisible(boolean).
|
isFocusable | boolean isFocusable()(Code) | | |
isObscured | boolean isObscured()(Code) | | |
isReparentSupported | boolean isReparentSupported()(Code) | | Returns whether this peer supports reparenting to another parent withour destroying the peer
true if appropriate reparent is supported, false otherwise since: 1.5 |
layout | void layout()(Code) | | 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.
|
minimumSize | Dimension minimumSize()(Code) | | DEPRECATED: Replaced by getMinimumSize().
|
preferredSize | Dimension preferredSize()(Code) | | DEPRECATED: Replaced by getPreferredSize().
|
repaint | void repaint(long tm, int x, int y, int width, int height)(Code) | | |
reparent | void reparent(ContainerPeer newContainer)(Code) | | Reparents this peer to the new parent referenced by newContainer peer
Implementation depends on toolkit and container.
Parameters: newContainer - peer of the new parent container since: 1.5 |
requestFocus | boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)(Code) | | |
reshape | void reshape(int x, int y, int width, int height)(Code) | | DEPRECATED: Replaced by setBounds(int, int, int, int).
|
setBounds | void setBounds(int x, int y, int width, int height, int op)(Code) | | |
setEnabled | void setEnabled(boolean b)(Code) | | |
setVisible | void setVisible(boolean b)(Code) | | |
show | void show()(Code) | | DEPRECATED: Replaced by setVisible(boolean).
|
updateCursorImmediately | void updateCursorImmediately()(Code) | | |
|
|