39 |
package java.awt.peer; |
package java.awt.peer; |
40 |
|
|
41 |
import java.awt.*; |
import java.awt.*; |
42 |
|
import java.awt.event.PaintEvent; |
43 |
import java.awt.image.*; |
import java.awt.image.*; |
44 |
|
|
45 |
public interface ComponentPeer |
public interface ComponentPeer |
58 |
public Dimension getMinimumSize(); |
public Dimension getMinimumSize(); |
59 |
public Dimension getPreferredSize(); |
public Dimension getPreferredSize(); |
60 |
public Toolkit getToolkit(); |
public Toolkit getToolkit(); |
|
// The JCL says that handleEvent returns boolean. However, we've |
|
|
// experimentally determined that it in fact actually returns void. |
|
61 |
public void handleEvent(AWTEvent e); |
public void handleEvent(AWTEvent e); |
62 |
public void hide(); |
public void hide(); |
63 |
|
|
64 |
|
/** |
65 |
|
* Part of the earlier 1.1 API, replaced by isFocusable(). |
66 |
|
*/ |
67 |
public boolean isFocusTraversable(); |
public boolean isFocusTraversable(); |
68 |
|
public boolean isFocusable(); |
69 |
public Dimension minimumSize(); |
public Dimension minimumSize(); |
70 |
public Dimension preferredSize(); |
public Dimension preferredSize(); |
71 |
public void paint(Graphics graphics); |
public void paint(Graphics graphics); |
72 |
public boolean prepareImage(Image img, int width, int height, |
public boolean prepareImage(Image img, int width, int height, |
73 |
ImageObserver ob); |
ImageObserver ob); |
74 |
public void print(Graphics graphics); |
public void print(Graphics graphics); |
75 |
public void repaint(long tm, int x, int y, int width, int height); |
public void repaint(long tm, int x, int y, int width, int height); |
76 |
|
|
77 |
|
/** |
78 |
|
* Part of the earlier 1.1 API, apparently replaced by argument |
79 |
|
* form of the same method. |
80 |
|
*/ |
81 |
public void requestFocus(); |
public void requestFocus(); |
82 |
|
public boolean requestFocus(java.awt.Component source, boolean bool1, boolean bool2, long x); |
83 |
|
|
84 |
public void reshape(int x, int y, int width, int height); |
public void reshape(int x, int y, int width, int height); |
85 |
public void setBackground(Color color); |
public void setBackground(Color color); |
86 |
public void setBounds(int x, int y, int width, int height); |
public void setBounds(int x, int y, int width, int height); |
87 |
|
|
88 |
|
/** |
89 |
|
* Part of the earlier 1.1 API, apparently no longer needed. |
90 |
|
*/ |
91 |
public void setCursor(Cursor cursor); |
public void setCursor(Cursor cursor); |
92 |
|
|
93 |
public void setEnabled(boolean enabled); |
public void setEnabled(boolean enabled); |
94 |
public void setFont(Font font); |
public void setFont(Font font); |
95 |
public void setForeground(Color color); |
public void setForeground(Color color); |
100 |
* Get the graphics configuration of the component. The color model |
* Get the graphics configuration of the component. The color model |
101 |
* of the component can be derived from the configuration. |
* of the component can be derived from the configuration. |
102 |
*/ |
*/ |
103 |
GraphicsConfiguration getGraphicsConfiguration(); |
public GraphicsConfiguration getGraphicsConfiguration(); |
104 |
|
|
105 |
|
/** |
106 |
|
* Part of an older API, no longer needed. |
107 |
|
*/ |
108 |
public void setEventMask (long mask); |
public void setEventMask (long mask); |
109 |
|
|
110 |
|
// Methods below are introduced since 1.1 |
111 |
|
public boolean isObscured(); |
112 |
|
public boolean canDetermineObscurity(); |
113 |
|
public void coalescePaintEvent(PaintEvent e); |
114 |
|
public void updateCursorImmediately(); |
115 |
|
public VolatileImage createVolatileImage(int width, int height); |
116 |
|
public boolean handlesWheelScrolling(); |
117 |
|
public void createBuffers(int x, java.awt.BufferCapabilities capabilities) throws java.awt.AWTException; |
118 |
|
public java.awt.Image getBackBuffer(); |
119 |
|
public void flip(java.awt.BufferCapabilities.FlipContents contents); |
120 |
|
public void destroyBuffers(); |
121 |
|
|
122 |
} |
} |