Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/awt/Image.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1 /* Image.java -- Java class for images
    2    Copyright (C) 1999 Free Software Foundation, Inc.
     1/* Image.java -- class for images
     2   Copyright (C) 1999 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    3939package java.awt;
    4040
    41 import java.awt.image.*;
     41import java.awt.image.AreaAveragingScaleFilter;
     42import java.awt.image.ImageObserver;
     43import java.awt.image.ImageProducer;
     44import java.awt.image.ReplicateScaleFilter;
    4245
    4346/**
    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 */
    4853public abstract class Image
    4954{
     55
     56
     57
     58
     59
     60
     61
    5062
    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;
    5469
    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;
    5976
    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;
    6483
    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;
    6992
    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;
    75101
    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()
    183106  {
    184     return null;
    185107  }
    186108
    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);
    188119
    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);
    195130
     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
    196190} // class Image
    197 
Note: See TracChangeset for help on using the changeset viewer.