mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 08:59:10 +08:00
f5826791be
* java/awt/ScrollPane.java: Wrote. * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New method. * java/awt/Panel.java (Panel()): Fixed. * java/awt/Component.java (isShowing): Return false if no peer exists, and true if component is visible and no parent exists. (getLocationOnScreen): Wrote. (getPreferredSize): Removed FIXME comment. (getMinimumSize): Likewise. (getAlignmentX, getAlignmentY): Wrote. (list): Wrote. (requestFocus): Wrote. (transferFocus): Wrote. (findNextFocusComponent): New method. (hasFocus()): Wrote. (checkImage): Wrote. (enableEvents): Call setEventMask on the peer. * java/awt/Container.java (list): Use super.list() to print self. (findNextFocusComponent): New method. (setLayout): Call invalidate. (findComponentAt): Wrote. From-SVN: r38639
51 lines
1.6 KiB
Java
51 lines
1.6 KiB
Java
/* Copyright (C) 2000 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
package java.awt.peer;
|
|
|
|
import java.awt.*;
|
|
import java.awt.image.*;
|
|
|
|
public interface ComponentPeer
|
|
{
|
|
int checkImage(Image img, int width, int height, ImageObserver o);
|
|
Image createImage(ImageProducer prod);
|
|
Image createImage(int width, int height);
|
|
void dispose();
|
|
|
|
/**
|
|
* Get the graphics configuration of the component. The color model
|
|
* of the component can be derived from the configuration.
|
|
*/
|
|
GraphicsConfiguration getGraphicsConfiguration();
|
|
|
|
FontMetrics getFontMetrics(Font f);
|
|
Graphics getGraphics();
|
|
Point getLocationOnScreen();
|
|
Dimension getMinimumSize();
|
|
Dimension getPreferredSize();
|
|
Toolkit getToolkit();
|
|
// The JCL says that handleEvent returns boolean. However, we've
|
|
// experimentally determined that it in fact actually returns void.
|
|
void handleEvent(AWTEvent e);
|
|
boolean isFocusTraversable();
|
|
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 setBackground(Color color);
|
|
void setBounds(int x, int y, int width, int height);
|
|
void setCursor(Cursor cursor);
|
|
void setEnabled(boolean enabled);
|
|
void setEventMask(long eventMask);
|
|
void setFont(Font font);
|
|
void setForeground(Color color);
|
|
void setVisible(boolean visible);
|
|
}
|