|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
, CanvasPeer
, CheckboxPeer
, ChoicePeer
, ContainerPeer
, DialogPeer
, FileDialogPeer
, FramePeer
, LabelPeer
, LightweightPeer
, ListPeer
, PanelPeer
, ScrollbarPeer
, ScrollPanePeer
, TextAreaPeer
, TextComponentPeer
, TextFieldPeer
, WindowPeer

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
|
void |
coalescePaintEvent
|
void |
createBuffers
|
Image |
createImage
|
Image |
createImage
|
VolatileImage |
createVolatileImage
|
void |
destroyBuffers
|
void |
disable
DEPRECATED: Replaced by setEnabled(boolean). |
void |
dispose
|
void |
enable
DEPRECATED: Replaced by setEnabled(boolean). |
void |
flip
|
Image |
getBackBuffer
|
Rectangle |
getBounds
|
ColorModel |
getColorModel
|
FontMetrics |
getFontMetrics
|
Graphics |
getGraphics
|
GraphicsConfiguration |
getGraphicsConfiguration
|
Point |
getLocationOnScreen
|
Dimension |
getMinimumSize
|
Dimension |
getPreferredSize
|
Toolkit |
getToolkit
|
void |
handleEvent
|
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
|
Dimension |
preferredSize
DEPRECATED: Replaced by getPreferredSize(). |
boolean |
prepareImage
|
void |
print
|
void |
repaint
|
void |
reparent
Reparents this peer to the new parent referenced by newContainer peer
Implementation depends on toolkit and container. |
boolean |
requestFocus
|
void |
reshape
DEPRECATED: Replaced by setBounds(int, int, int, int). |
void |
setBackground
|
void |
setBounds
|
void |
setEnabled
|
void |
setFont
|
void |
setForeground
|
void |
setVisible
|
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
![]()
![]()