diff options
| author | Tom Tromey <tromey@redhat.com> | 2003-03-01 22:14:21 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-03-01 22:14:21 +0000 |
| commit | 2759b2605e4d287628bce47af67cb27fbcdf2e58 (patch) | |
| tree | 0a2283c36b183fa1062ced6bc9c1d645a85e2cff /libjava/java/awt/peer/ComponentPeer.java | |
| parent | 11522327310925f7a6547e072e703dd35871ea95 (diff) | |
XPanelPeer.java (beginLayout, [...]): New methods.
* gnu/awt/xlib/XPanelPeer.java (beginLayout, endLayout,
isPaintPending): New methods.
* gnu/awt/xlib/XFramePeer.java (getState, setState,
setMaximizedBounds): New methods.
(beginLayout, endLayout, isPaintPending): Likewise.
* gnu/awt/xlib/XCanvasPeer.java (isFocusable): New method.
(requestFocus): Likewise.
(isObscured): Likewise.
(canDetermineObscurity): Likewise.
(coalescePaintEvent): Likewise.
(updateCursorImmediately): Likewise.
(createVolatileImage): Likewise.
(handlesWheelScrolling): Likewise.
(createBuffers): Likewise.
(getBackBuffer): Likewise.
(flip): Likewise.
(destroyBuffers): Likewise.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added DropTargetPeer.java,
RobotPeer.java.
* gnu/java/awt/GLightweightPeer.java,
gnu/java/awt/peer/gtk/GtkChoicePeer.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java,
gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
java/awt/dnd/peer/DragSourceContextPeer.java,
java/awt/dnd/peer/DropTargetContextPeer.java,
java/awt/peer/ButtonPeer.java,
java/awt/peer/CheckboxMenuItemPeer.java,
java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
java/awt/peer/ComponentPeer.java,
java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
java/awt/peer/MenuBarPeer.java,
java/awt/peer/MenuComponentPeer.java,
java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
java/awt/peer/PopupMenuPeer.java,
java/awt/peer/ScrollPanePeer.java,
java/awt/peer/ScrollbarPeer.java, java/awt/peer/TextAreaPeer.java,
java/awt/peer/TextComponentPeer.java,
java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java:
New versions from Classpath.
* java/awt/dnd/peer/DropTargetPeer.java: New file from Classpath.
* java/awt/peer/RobotPeer.java: Likewise.
From-SVN: r63627
Diffstat (limited to 'libjava/java/awt/peer/ComponentPeer.java')
| -rw-r--r-- | libjava/java/awt/peer/ComponentPeer.java | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/libjava/java/awt/peer/ComponentPeer.java b/libjava/java/awt/peer/ComponentPeer.java index 257d608060d..e6f79d1d116 100644 --- a/libjava/java/awt/peer/ComponentPeer.java +++ b/libjava/java/awt/peer/ComponentPeer.java @@ -39,6 +39,7 @@ exception statement from your version. */ package java.awt.peer; import java.awt.*; +import java.awt.event.PaintEvent; import java.awt.image.*; public interface ComponentPeer @@ -57,23 +58,38 @@ public interface ComponentPeer public Dimension getMinimumSize(); public Dimension getPreferredSize(); public Toolkit getToolkit(); - // The JCL says that handleEvent returns boolean. However, we've - // experimentally determined that it in fact actually returns void. public void handleEvent(AWTEvent e); public void hide(); + + /** + * Part of the earlier 1.1 API, replaced by isFocusable(). + */ public boolean isFocusTraversable(); + public boolean isFocusable(); public Dimension minimumSize(); public Dimension preferredSize(); public void paint(Graphics graphics); public boolean prepareImage(Image img, int width, int height, - ImageObserver ob); + ImageObserver ob); public void print(Graphics graphics); public void repaint(long tm, int x, int y, int width, int height); + + /** + * Part of the earlier 1.1 API, apparently replaced by argument + * form of the same method. + */ public void requestFocus(); + public boolean requestFocus(java.awt.Component source, boolean bool1, boolean bool2, long x); + public void reshape(int x, int y, int width, int height); public void setBackground(Color color); public void setBounds(int x, int y, int width, int height); + + /** + * Part of the earlier 1.1 API, apparently no longer needed. + */ public void setCursor(Cursor cursor); + public void setEnabled(boolean enabled); public void setFont(Font font); public void setForeground(Color color); @@ -84,7 +100,23 @@ public interface ComponentPeer * Get the graphics configuration of the component. The color model * of the component can be derived from the configuration. */ - GraphicsConfiguration getGraphicsConfiguration(); + public GraphicsConfiguration getGraphicsConfiguration(); + /** + * Part of an older API, no longer needed. + */ public void setEventMask (long mask); + + // Methods below are introduced since 1.1 + public boolean isObscured(); + public boolean canDetermineObscurity(); + public void coalescePaintEvent(PaintEvent e); + public void updateCursorImmediately(); + public VolatileImage createVolatileImage(int width, int height); + public boolean handlesWheelScrolling(); + public void createBuffers(int x, java.awt.BufferCapabilities capabilities) throws java.awt.AWTException; + public java.awt.Image getBackBuffer(); + public void flip(java.awt.BufferCapabilities.FlipContents contents); + public void destroyBuffers(); + } |
