0acff4bc96
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz> * prims.cc (_Jv_argv, _Jv_argc): New fields. (JvRunMain): Set _Jv_argv and _Jv_argc. * java/awt/Component.java: Minor fixes. * java/awt/Image.java (UndefinedProperty): Initialize final field. * java/awt/Toolkit.java (systemEventQueue): Removed. (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit". * java/awt/Window.java (getToolkit): Don't call super. * java/awt/image/BufferedImage.java: Fix definate assignment errors. * java/awt/peer/ContainerPeer.java (insets): Remove unused method. * gnu/awt/gtk/GtkComponentPeer.java: New file. * gnu/awt/gtk/GtkContainerPeer.java: New file. * gnu/awt/gtk/GtkFramePeer.java: New file. * gnu/awt/gtk/GtkMainThread.java: New file. * gnu/awt/gtk/GtkToolkit.java: New file. * gnu/awt/gtk/GtkWindowPeer.java: New file. * gnu/awt/gtk/gtkcommon.cc: New file. * gnu/awt/gtk/gtkcommon.h: New file. * gnu/awt/gtk/natGtkComponentPeer.cc: New file. * gnu/awt/gtk/natGtkContainerPeer.cc: New file. * gnu/awt/gtk/natGtkFramePeer.cc: New file. * gnu/awt/gtk/natGtkMainThread.cc: New file. * gnu/awt/gtk/natGtkToolkit.cc: New file. * gnu/awt/gtk/natGtkWindowPeer.cc: New file. From-SVN: r36688
52 lines
1.4 KiB
Java
52 lines
1.4 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;
|
|
|
|
import java.awt.image.ImageObserver;
|
|
import java.awt.image.ImageProducer;
|
|
|
|
/**
|
|
* @author Warren Levy <warrenl@cygnus.com>
|
|
* @date March 15, 2000.
|
|
*/
|
|
|
|
/**
|
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
|
* Status: Mostly complete, but look for FIXMEs.
|
|
*/
|
|
|
|
public abstract class Image extends Object
|
|
{
|
|
public static final Object UndefinedProperty = new Object();
|
|
|
|
public static final int SCALE_DEFAULT = 1<<0,
|
|
SCALE_FAST = 1<<1,
|
|
SCALE_SMOOTH = 1<<2,
|
|
SCALE_REPLICATE = 1<<3,
|
|
SCALE_AREA_AVERAGING = 1<<4;
|
|
|
|
public abstract int getWidth(ImageObserver observer);
|
|
|
|
public abstract int getHeight(ImageObserver observer);
|
|
|
|
public abstract ImageProducer getSource();
|
|
|
|
public abstract Graphics getGraphics();
|
|
|
|
public abstract Object getProperty(String name, ImageObserver observer);
|
|
|
|
public Image getScaledInstance(int width, int height, int hints)
|
|
{
|
|
throw new UnsupportedOperationException("FIXME: not implemented yet");
|
|
}
|
|
|
|
public abstract void flush();
|
|
}
|