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