jdk/src/share/classes/java/awt/MediaTracker.java
changeset 25162 c388078278d4
parent 25144 e2bf17cee34b
equal deleted inserted replaced
25161:c85a08c0b9d9 25162:c388078278d4
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   641      * <p>
   641      * <p>
   642      * If there is an error while loading or scaling an image, then that
   642      * If there is an error while loading or scaling an image, then that
   643      * image is considered to have finished loading. Use the
   643      * image is considered to have finished loading. Use the
   644      * <code>statusID</code>, <code>isErrorID</code>, and
   644      * <code>statusID</code>, <code>isErrorID</code>, and
   645      * <code>isErrorAny</code> methods to check for errors.
   645      * <code>isErrorAny</code> methods to check for errors.
   646      * @param         id   the identifier of the images to check
   646      * @param  id the identifier of the images to check
   647      * @param         ms   the length of time, in milliseconds, to wait
   647      * @param  ms the length of time, in milliseconds, to wait
   648      *                           for the loading to complete
   648      *         for the loading to complete
       
   649      * @return {@code true} if the loading completed in time;
       
   650      *         otherwise {@code false}
   649      * @see           java.awt.MediaTracker#waitForAll
   651      * @see           java.awt.MediaTracker#waitForAll
   650      * @see           java.awt.MediaTracker#waitForID(int)
   652      * @see           java.awt.MediaTracker#waitForID(int)
   651      * @see           java.awt.MediaTracker#statusID
   653      * @see           java.awt.MediaTracker#statusID
   652      * @see           java.awt.MediaTracker#isErrorAny()
   654      * @see           java.awt.MediaTracker#isErrorAny()
   653      * @see           java.awt.MediaTracker#isErrorID(int)
   655      * @see           java.awt.MediaTracker#isErrorID(int)