diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-12 03:32:07 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-12 03:32:07 +0000 |
commit | 42de8277e53eabea04a48598c12ed6d488412a7b (patch) | |
tree | d9865dd4f3595d22c9fd5c93cc63eb0b226278d6 /libjava/java/awt/peer/ComponentPeer.java | |
parent | dfac2e0f9360b5aa065b75814255e7efbcd32762 (diff) | |
download | ppe42-gcc-42de8277e53eabea04a48598c12ed6d488412a7b.tar.gz ppe42-gcc-42de8277e53eabea04a48598c12ed6d488412a7b.zip |
Big AWT patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34976 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/peer/ComponentPeer.java')
-rw-r--r-- | libjava/java/awt/peer/ComponentPeer.java | 49 |
1 files changed, 37 insertions, 12 deletions
diff --git a/libjava/java/awt/peer/ComponentPeer.java b/libjava/java/awt/peer/ComponentPeer.java index 806b9623de2..883d2b398b6 100644 --- a/libjava/java/awt/peer/ComponentPeer.java +++ b/libjava/java/awt/peer/ComponentPeer.java @@ -1,23 +1,48 @@ -/* Copyright (C) 1999 Free Software Foundation +/* Copyright (C) 2000 Free Software Foundation - This file is part of libjava. + This file is part of libgcj. This software is copyrighted work licensed under the terms of the -Libjava License. Please consult the file "LIBJAVA_LICENSE" for +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ package java.awt.peer; -import java.awt.*; -/* A very incomplete placeholder. */ +import java.awt.*; +import java.awt.image.*; public interface ComponentPeer { - public abstract Toolkit getToolkit (); - - public Dimension getMinimumSize (); - - public Dimension getPreferredSize (); - - public void setBounds (int x, int y, int w, int h); + int checkImage(Image img, int width, int height, ImageObserver o); + Image createImage(ImageProducer prod); + Image createImage(int width, int height); + void disable(); + void dispose(); + void enable(); + ColorModel getColorModel(); + FontMetrics getFontMetrics(Font f); + Graphics getGraphics(); + Point getLocationOnScreen(); + Dimension getMinimumSize(); + Dimension getPreferredSize(); + Toolkit getToolkit(); + void handleEvent(AWTEvent e); + void hide(); + boolean isFocusTraversable(); + Dimension minimumSize(); + Dimension preferredSize(); + void paint(Graphics graphics); + boolean prepareImage(Image img, int width, int height, ImageObserver o); + void print(Graphics graphics); + void repaint(long tm, int x, int y, int width, int height); + void requestFocus(); + void reshape(int x, int y, int width, int height); + void setBackground(Color color); + void setBounds(int x, int y, int width, int height); + void setCursor(Cursor cursor); + void setEnabled(boolean enabled); + void setFont(Font font); + void setForeground(Color color); + void setVisible(boolean visible); + void show(); } |