jdk/src/share/classes/java/awt/MediaTracker.java
changeset 25144 e2bf17cee34b
parent 25107 9a16a601de25
parent 24865 09b1d992ca72
child 25162 c388078278d4
equal deleted inserted replaced
25143:aade36e70da0 25144:e2bf17cee34b
   162  *      }
   162  *      }
   163  * }
   163  * }
   164  * } </pre></blockquote><hr>
   164  * } </pre></blockquote><hr>
   165  *
   165  *
   166  * @author      Jim Graham
   166  * @author      Jim Graham
   167  * @since       JDK1.0
   167  * @since       1.0
   168  */
   168  */
   169 public class MediaTracker implements java.io.Serializable {
   169 public class MediaTracker implements java.io.Serializable {
   170 
   170 
   171     /**
   171     /**
   172      * A given <code>Component</code> that will be
   172      * A given <code>Component</code> that will be
   724      * All instances of the specified image are removed,
   724      * All instances of the specified image are removed,
   725      * regardless of scale or ID.
   725      * regardless of scale or ID.
   726      * @param   image     the image to be removed
   726      * @param   image     the image to be removed
   727      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int)
   727      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int)
   728      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
   728      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
   729      * @since   JDK1.1
   729      * @since   1.1
   730      */
   730      */
   731     public synchronized void removeImage(Image image) {
   731     public synchronized void removeImage(Image image) {
   732         removeImageImpl(image);
   732         removeImageImpl(image);
   733         Image rvImage = getResolutionVariant(image);
   733         Image rvImage = getResolutionVariant(image);
   734         if (rvImage != null) {
   734         if (rvImage != null) {
   763      * under the specified ID are removed regardless of scale.
   763      * under the specified ID are removed regardless of scale.
   764      * @param      image the image to be removed
   764      * @param      image the image to be removed
   765      * @param      id the tracking ID from which to remove the image
   765      * @param      id the tracking ID from which to remove the image
   766      * @see        java.awt.MediaTracker#removeImage(java.awt.Image)
   766      * @see        java.awt.MediaTracker#removeImage(java.awt.Image)
   767      * @see        java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
   767      * @see        java.awt.MediaTracker#removeImage(java.awt.Image, int, int, int)
   768      * @since      JDK1.1
   768      * @since      1.1
   769      */
   769      */
   770     public synchronized void removeImage(Image image, int id) {
   770     public synchronized void removeImage(Image image, int id) {
   771         removeImageImpl(image, id);
   771         removeImageImpl(image, id);
   772         Image rvImage = getResolutionVariant(image);
   772         Image rvImage = getResolutionVariant(image);
   773         if (rvImage != null) {
   773         if (rvImage != null) {
   803      * @param   id the tracking ID from which to remove the image
   803      * @param   id the tracking ID from which to remove the image
   804      * @param   width the width to remove (-1 for unscaled)
   804      * @param   width the width to remove (-1 for unscaled)
   805      * @param   height the height to remove (-1 for unscaled)
   805      * @param   height the height to remove (-1 for unscaled)
   806      * @see     java.awt.MediaTracker#removeImage(java.awt.Image)
   806      * @see     java.awt.MediaTracker#removeImage(java.awt.Image)
   807      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int)
   807      * @see     java.awt.MediaTracker#removeImage(java.awt.Image, int)
   808      * @since   JDK1.1
   808      * @since   1.1
   809      */
   809      */
   810     public synchronized void removeImage(Image image, int id,
   810     public synchronized void removeImage(Image image, int id,
   811                                          int width, int height) {
   811                                          int width, int height) {
   812         removeImageImpl(image, id, width, height);
   812         removeImageImpl(image, id, width, height);
   813         Image rvImage = getResolutionVariant(image);
   813         Image rvImage = getResolutionVariant(image);