< prev index next >
src/java.desktop/share/classes/java/awt/image/FilteredImageSource.java
Print this page
*** 56,67 ****
ImageFilter filter;
/**
* Constructs an ImageProducer object from an existing ImageProducer
* and a filter object.
! * @param orig the specified <code>ImageProducer</code>
! * @param imgf the specified <code>ImageFilter</code>
* @see ImageFilter
* @see java.awt.Component#createImage
*/
public FilteredImageSource(ImageProducer orig, ImageFilter imgf) {
src = orig;
--- 56,67 ----
ImageFilter filter;
/**
* Constructs an ImageProducer object from an existing ImageProducer
* and a filter object.
! * @param orig the specified {@code ImageProducer}
! * @param imgf the specified {@code ImageFilter}
* @see ImageFilter
* @see java.awt.Component#createImage
*/
public FilteredImageSource(ImageProducer orig, ImageFilter imgf) {
src = orig;
*** 69,93 ****
}
private Hashtable<ImageConsumer, ImageFilter> proxies;
/**
! * Adds the specified <code>ImageConsumer</code>
* to the list of consumers interested in data for the filtered image.
! * An instance of the original <code>ImageFilter</code>
* is created
! * (using the filter's <code>getFilterInstance</code> method)
* to manipulate the image data
! * for the specified <code>ImageConsumer</code>.
* The newly created filter instance
! * is then passed to the <code>addConsumer</code> method
! * of the original <code>ImageProducer</code>.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the <code>ImageProducer</code> interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @param ic the consumer for the filtered image
* @see ImageConsumer
--- 69,93 ----
}
private Hashtable<ImageConsumer, ImageFilter> proxies;
/**
! * Adds the specified {@code ImageConsumer}
* to the list of consumers interested in data for the filtered image.
! * An instance of the original {@code ImageFilter}
* is created
! * (using the filter's {@code getFilterInstance} method)
* to manipulate the image data
! * for the specified {@code ImageConsumer}.
* The newly created filter instance
! * is then passed to the {@code addConsumer} method
! * of the original {@code ImageProducer}.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the {@code ImageProducer} interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @param ic the consumer for the filtered image
* @see ImageConsumer
*** 108,122 ****
* currently interested in data for this image.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the <code>ImageProducer</code> interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
! * @param ic the specified <code>ImageConsumer</code>
* @return true if the ImageConsumer is on the list; false otherwise
* @see ImageConsumer
*/
public synchronized boolean isConsumer(ImageConsumer ic) {
return (proxies != null && proxies.containsKey(ic));
--- 108,122 ----
* currently interested in data for this image.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the {@code ImageProducer} interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
! * @param ic the specified {@code ImageConsumer}
* @return true if the ImageConsumer is on the list; false otherwise
* @see ImageConsumer
*/
public synchronized boolean isConsumer(ImageConsumer ic) {
return (proxies != null && proxies.containsKey(ic));
*** 127,137 ****
* data for this image.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the <code>ImageProducer</code> interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @see ImageConsumer
*/
--- 127,137 ----
* data for this image.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the {@code ImageProducer} interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @see ImageConsumer
*/
*** 148,172 ****
}
}
/**
* Starts production of the filtered image.
! * If the specified <code>ImageConsumer</code>
* isn't already a consumer of the filtered image,
! * an instance of the original <code>ImageFilter</code>
* is created
! * (using the filter's <code>getFilterInstance</code> method)
* to manipulate the image data
! * for the <code>ImageConsumer</code>.
! * The filter instance for the <code>ImageConsumer</code>
! * is then passed to the <code>startProduction</code> method
! * of the original <code>ImageProducer</code>.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the <code>ImageProducer</code> interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @param ic the consumer for the filtered image
* @see ImageConsumer
--- 148,172 ----
}
}
/**
* Starts production of the filtered image.
! * If the specified {@code ImageConsumer}
* isn't already a consumer of the filtered image,
! * an instance of the original {@code ImageFilter}
* is created
! * (using the filter's {@code getFilterInstance} method)
* to manipulate the image data
! * for the {@code ImageConsumer}.
! * The filter instance for the {@code ImageConsumer}
! * is then passed to the {@code startProduction} method
! * of the original {@code ImageProducer}.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the {@code ImageProducer} interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @param ic the consumer for the filtered image
* @see ImageConsumer
*** 190,200 ****
* ability to preserve the pixel ordering depends on the filter.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the <code>ImageProducer</code> interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @see ImageConsumer
*/
--- 190,200 ----
* ability to preserve the pixel ordering depends on the filter.
*
* <p>
* This method is public as a side effect
* of this class implementing
! * the {@code ImageProducer} interface.
* It should not be called from user code,
* and its behavior if called from user code is unspecified.
*
* @see ImageConsumer
*/
< prev index next >