|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Field Summary | |
|---|---|
static int |
DEFAULT_OPERATION
|
static int |
NO_EMBEDDED_CHECK
|
static int |
RESET_OPERATION
|
static int |
SET_BOUNDS
|
static int |
SET_CLIENT_SIZE
|
static int |
SET_LOCATION
|
static int |
SET_SIZE
|
| 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()
Returns whether this peer supports reparenting to another parent withour destroying the peer |
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)
|
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()
|
| Field Detail |
|---|
static final int SET_LOCATION
static final int SET_SIZE
static final int SET_BOUNDS
static final int SET_CLIENT_SIZE
static final int RESET_OPERATION
static final int NO_EMBEDDED_CHECK
static final int DEFAULT_OPERATION
| Method Detail |
|---|
boolean isObscured()
boolean canDetermineObscurity()
void setVisible(boolean b)
void setEnabled(boolean b)
void paint(Graphics g)
void repaint(long tm,
int x,
int y,
int width,
int height)
void print(Graphics g)
void setBounds(int x,
int y,
int width,
int height,
int op)
void handleEvent(AWTEvent e)
void coalescePaintEvent(PaintEvent e)
Point getLocationOnScreen()
Dimension getPreferredSize()
Dimension getMinimumSize()
ColorModel getColorModel()
Toolkit getToolkit()
Graphics getGraphics()
FontMetrics getFontMetrics(Font font)
void dispose()
void setForeground(Color c)
void setBackground(Color c)
void setFont(Font f)
void updateCursorImmediately()
boolean requestFocus(Component lightweightChild,
boolean temporary,
boolean focusedWindowChangeAllowed,
long time)
boolean isFocusable()
Image createImage(ImageProducer producer)
Image createImage(int width,
int height)
VolatileImage createVolatileImage(int width,
int height)
boolean prepareImage(Image img,
int w,
int h,
ImageObserver o)
int checkImage(Image img,
int w,
int h,
ImageObserver o)
GraphicsConfiguration getGraphicsConfiguration()
boolean handlesWheelScrolling()
void createBuffers(int numBuffers,
BufferCapabilities caps)
throws AWTException
AWTExceptionImage getBackBuffer()
void flip(BufferCapabilities.FlipContents flipAction)
void destroyBuffers()
void reparent(ContainerPeer newContainer)
newContainer peer
Implementation depends on toolkit and container.
newContainer - peer of the new parent containerboolean isReparentSupported()
void layout()
Rectangle getBounds()
Dimension preferredSize()
Dimension minimumSize()
void show()
void hide()
void enable()
void disable()
void reshape(int x,
int y,
int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||