Changeset 1391 for branches/GNU/src/gcc/libjava/java/awt/Image.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/awt/Image.java (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/awt/Image.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 /* Image.java -- Javaclass for images2 Copyright (C) 1999 Free Software Foundation, Inc.1 /* Image.java -- class for images 2 Copyright (C) 1999 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 39 39 package java.awt; 40 40 41 import java.awt.image.*; 41 import java.awt.image.AreaAveragingScaleFilter; 42 import java.awt.image.ImageObserver; 43 import java.awt.image.ImageProducer; 44 import java.awt.image.ReplicateScaleFilter; 42 45 43 46 /** 44 * This is the abstract superclass of all image objects in Java. 45 * 46 * @author Aaron M. Renn ([email protected]) 47 */ 47 * This is the abstract superclass of all image objects in Java. 48 * 49 * @author Aaron M. Renn <[email protected]> 50 * @since 1.0 51 * @status updated to 1.4 52 */ 48 53 public abstract class Image 49 54 { 55 56 57 58 59 60 61 50 62 51 /* 52 * Static Variables 53 */ 63 /** 64 * Constant indicating that the default scaling algorithm should be used. 65 * 66 * @since 1.1 67 */ 68 public static final int SCALE_DEFAULT = 1; 54 69 55 /** 56 * Constant indicating that the default scaling algorithm should be used. 57 */ 58 public static final int SCALE_DEFAULT = 1; 70 /** 71 * Constant indicating that a fast scaling algorithm should be used. 72 * 73 * @since 1.1 74 */ 75 public static final int SCALE_FAST = 2; 59 76 60 /** 61 * Constant indicating that a fast scaling algorithm should be used. 62 */ 63 public static final int SCALE_FAST = 2; 77 /** 78 * Constant indicating that a smooth scaling algorithm should be used. 79 * 80 * @since 1.1 81 */ 82 public static final int SCALE_SMOOTH = 4; 64 83 65 /** 66 * Constant indicating that a smooth scaling algorithm should be used. 67 */ 68 public static final int SCALE_SMOOTH = 4; 84 /** 85 * Constant indicating that the <code>ReplicateScaleFilter</code> class 86 * algorithm should be used for scaling. 87 * 88 * @see ReplicateScaleFilter 89 * @since 1.1 90 */ 91 public static final int SCALE_REPLICATE = 8; 69 92 70 /** 71 * Constant indicating that the <code>ReplicateScaleFilter</code> class 72 * algorithm should be used for scaling. 73 */ 74 public static final int SCALE_REPLICATE = 8; 93 /** 94 * Constant indicating that the area averaging scaling algorithm should be 95 * used. 96 * 97 * @see AreaAveragingScaleFilter 98 * @since 1.1 99 */ 100 public static final int SCALE_AREA_AVERAGING = 16; 75 101 76 /** 77 * Constant indicating that the area averaging scaling algorithm should be 78 * used. 79 */ 80 public static final int SCALE_AREA_AVERAGING = 16; 81 82 /** 83 * This variable is returned whenever a property that is not defined 84 * is requested. 85 */ 86 public static final Object UndefinedProperty = Image.class; 87 88 /*************************************************************************/ 89 90 /* 91 * Constructors 92 */ 93 94 /** 95 * A default constructor for subclasses. 96 */ 97 public 98 Image() 99 { 100 } 101 102 /*************************************************************************/ 103 104 /* 105 * Instance Methods 106 */ 107 108 /** 109 * Returns the width of the image, or -1 if it is unknown. If the 110 * image width is unknown, the observer object will be notified when 111 * the value is known. 112 * 113 * @param observer The image observer for this object. 114 */ 115 public abstract int 116 getWidth(ImageObserver observer); 117 118 /*************************************************************************/ 119 120 /** 121 * Returns the height of the image, or -1 if it is unknown. If the 122 * image height is unknown, the observer object will be notified when 123 * the value is known. 124 * 125 * @param observer The image observer for this object. 126 */ 127 public abstract int 128 getHeight(ImageObserver observer); 129 130 /*************************************************************************/ 131 132 /** 133 * Returns the image producer object for this object. 134 * 135 * @return The image producer for this object. 136 */ 137 public abstract ImageProducer 138 getSource(); 139 140 /*************************************************************************/ 141 142 /** 143 * Returns a graphics context object for drawing an off-screen object. 144 * This method is only valid for off-screen objects. 145 * 146 * @return A graphics context object for an off-screen object. 147 */ 148 public abstract Graphics 149 getGraphics(); 150 151 /*************************************************************************/ 152 153 /** 154 * This method requests a named property for an object. The value of the 155 * property is returned. The value <code>UndefinedProperty</code> is 156 * returned if there is no property with the specified name. The value 157 * <code>null</code> is returned if the properties for the object are 158 * not yet known. In this case, the specified image observer is notified 159 * when the properties are known. 160 * 161 * @param name The requested property name. 162 * @param observer The image observer for this object. 163 */ 164 public abstract Object 165 getProperty(String name, ImageObserver observer); 166 167 /*************************************************************************/ 168 169 /** 170 * Scales the image to the requested dimension. 171 * 172 * XXX: FIXME 173 * 174 * @param width The width of the scaled image. 175 * @param height The height of the scaled image. 176 * @param flags A value indicating the algorithm to use, which will be 177 * set from contants defined in this class. 178 * 179 * @return The scaled <code>Image</code> object. 180 */ 181 public Image 182 getScaledInstance(int width, int height, int flags) 102 /** 103 * A default constructor for subclasses. 104 */ 105 public Image() 183 106 { 184 return null;185 107 } 186 108 187 /*************************************************************************/ 109 /** 110 * Returns the width of the image, or -1 if it is unknown. If the 111 * image width is unknown, the observer object will be notified when 112 * the value is known. 113 * 114 * @param observer the image observer for this object 115 * @return the width in pixels 116 * @see #getHeight(ImageObserver) 117 */ 118 public abstract int getWidth(ImageObserver observer); 188 119 189 /** 190 * Flushes (that is, destroys) any resources used for this image. This 191 * includes the actual image data. 192 */ 193 public abstract void 194 flush(); 120 /** 121 * Returns the height of the image, or -1 if it is unknown. If the 122 * image height is unknown, the observer object will be notified when 123 * the value is known. 124 * 125 * @param observer the image observer for this object 126 * @return the height in pixels 127 * @see #getWidth(ImageObserver) 128 */ 129 public abstract int getHeight(ImageObserver observer); 195 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 196 190 } // class Image 197 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
