/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* The object which is used to reconstruct the original image data
* as needed.
*/
static {
/* ensure that the necessary native libraries are loaded */
}
protected ToolkitImage() {
}
/**
* Construct an image from an ImageProducer object.
*/
if (is instanceof InputStreamImageSource) {
}
}
}
return source;
}
private int availinfo;
/**
* Return the width of the original image source.
* If the width isn't known, then the image is reconstructed.
*/
public int getWidth() {
}
}
return width;
}
/**
* Return the width of the original image source.
* If the width isn't known, then the ImageObserver object will be
* notified when the data is available.
*/
}
addWatcher(iw, true);
return -1;
}
}
return width;
}
/**
* Return the height of the original image source.
* If the height isn't known, then the image is reconstructed.
*/
public int getHeight() {
}
}
return height;
}
/**
* Return the height of the original image source.
* If the height isn't known, then the ImageObserver object will be
* notified when the data is available.
*/
}
addWatcher(iw, true);
return -1;
}
}
return height;
}
/**
* Return a property of the image by name. Individual property names
* are defined by the various image formats. If a property is not
* defined for a particular image, then this method will return the
* UndefinedProperty object. If the properties for this image are
* not yet known, then this method will return null and the ImageObserver
* object will be notified later. The property name "comment" should
* be used to store an optional comment which can be presented to
* the user as a description of the image, its source, or its author.
*/
throw new NullPointerException("null property name is not allowed");
}
}
if (properties == null) {
addWatcher(observer, true);
if (properties == null) {
return null;
}
}
if (o == null) {
o = Image.UndefinedProperty;
}
return o;
}
public boolean hasError() {
}
}
}
addWatcher(iw, false);
}
return availinfo;
}
}
addWatcher(iw, true);
}
}
-1, -1, -1, -1);
}
return;
}
if (load) {
}
}
return;
}
try {
wait();
} catch (InterruptedException e) {
return;
}
return;
}
}
}
}
notifyAll();
}
void setDimensions(int w, int h) {
width = w;
height = h;
}
}
properties = props;
}
}
}
public void flush() {
}
synchronized (this) {
}
}
}
}
false);
}
}
imagerep = makeImageRep();
}
return imagerep;
}
throw new UnsupportedOperationException("getGraphics() not valid for images " +
"created with createImage(producer)");
}
/* this method is needed by printing code */
return imageRep.getColorModel();
}
/* this method is needed by printing code */
return imageRep.getBufferedImage();
}
super.setAccelerationPriority(priority);
}
}