2362N/A * Copyright (c) 1995, 2000, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The interface for objects which can produce the image data for Images. 0N/A * Each image contains an ImageProducer which is used to reconstruct 0N/A * the image whenever it is needed, for example, when a new size of the 0N/A * Image is scaled, or when the width or height of the Image is being 0N/A * @see ImageConsumer 0N/A * @author Jim Graham 0N/A * Registers an <code>ImageConsumer</code> with the 0N/A * <code>ImageProducer</code> for access to the image data 0N/A * during a later reconstruction of the <code>Image</code>. 0N/A * The <code>ImageProducer</code> may, at its discretion, 0N/A * start delivering the image data to the consumer 0N/A * using the <code>ImageConsumer</code> interface immediately, 0N/A * or when the next available image reconstruction is triggered 0N/A * by a call to the <code>startProduction</code> method. 0N/A * @param ic the specified <code>ImageConsumer</code> 0N/A * @see #startProduction 0N/A * Determines if a specified <code>ImageConsumer</code> 0N/A * object is currently registered with this 0N/A * <code>ImageProducer</code> as one of its consumers. 0N/A * @param ic the specified <code>ImageConsumer</code> 0N/A * @return <code>true</code> if the specified 0N/A * <code>ImageConsumer</code> is registered with 0N/A * this <code>ImageProducer</code>; 0N/A * <code>false</code> otherwise. 0N/A * Removes the specified <code>ImageConsumer</code> object 0N/A * from the list of consumers currently registered to 0N/A * receive image data. It is not considered an error 0N/A * to remove a consumer that is not currently registered. 0N/A * The <code>ImageProducer</code> should stop sending data 0N/A * to this consumer as soon as is feasible. 0N/A * @param ic the specified <code>ImageConsumer</code> 0N/A * Registers the specified <code>ImageConsumer</code> object 0N/A * as a consumer and starts an immediate reconstruction of 0N/A * the image data which will then be delivered to this 0N/A * consumer and any other consumer which might have already 0N/A * been registered with the producer. This method differs 0N/A * from the addConsumer method in that a reproduction of 0N/A * the image data should be triggered as soon as possible. 0N/A * @param ic the specified <code>ImageConsumer</code> 0N/A * Requests, on behalf of the <code>ImageConsumer</code>, 0N/A * that the <code>ImageProducer</code> attempt to resend 0N/A * the image data one more time in TOPDOWNLEFTRIGHT order 0N/A * so that higher quality conversion algorithms which 0N/A * depend on receiving pixels in order can be used to 0N/A * produce a better output version of the image. The 0N/A * <code>ImageProducer</code> is free to 0N/A * ignore this call if it cannot resend the data in that 0N/A * order. If the data can be resent, the 0N/A * <code>ImageProducer</code> should respond by executing 0N/A * the following minimum set of <code>ImageConsumer</code> 0N/A * ic.setHints(TOPDOWNLEFTRIGHT | < otherhints >); 0N/A * ic.setPixels(...); // As many times as needed 0N/A * ic.imageComplete(); 0N/A * @param ic the specified <code>ImageConsumer</code> 0N/A * @see ImageConsumer#setHints