All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.image.FilteredImageSource

java.lang.Object
|
   +----java.awt.image.FilteredImageSource

public class FilteredImageSource
extends Object
implements ImageProducer
This class is an implementation of the ImageProducer interface which takes an existing image and a filter object and uses them to produce image data for a new filtered version of the original image. Here is an example which filters an image by swapping the red and blue compents:
Image src = getImage("doc:///demo/images/duke/T1.gif");
	ImageFilter colorfilter = new RedBlueSwapFilter();
	Image img = createImage(new FilteredImageSource(src.getSource(),
							colorfilter));

See Also:
ImageProducer

Constructor Index

 o FilteredImageSource(ImageProducer, ImageFilter)
Constructs an ImageProducer object from an existing ImageProducer and a filter object.

Method Index

 o addConsumer(ImageConsumer)
Adds an ImageConsumer to the list of consumers interested in data for this image.
 o isConsumer(ImageConsumer)
Determines whether an ImageConsumer is on the list of consumers currently interested in data for this image.
 o removeConsumer(ImageConsumer)
Removes an ImageConsumer from the list of consumers interested in data for this image.
 o requestTopDownLeftRightResend(ImageConsumer)
Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order.
 o startProduction(ImageConsumer)
Adds an ImageConsumer to the list of consumers interested in data for this image, and immediately starts delivery of the image data through the ImageConsumer interface.

Constructors

 o FilteredImageSource
public FilteredImageSource(ImageProducer orig,
ImageFilter imgf)
Constructs an ImageProducer object from an existing ImageProducer and a filter object.

See Also:
ImageFilter, createImage

Methods

 o addConsumer
public synchronized void addConsumer(ImageConsumer ic)
Adds an ImageConsumer to the list of consumers interested in data for this image.

See Also:
ImageConsumer
 o isConsumer
public synchronized boolean isConsumer(ImageConsumer ic)
Determines whether an ImageConsumer is on the list of consumers currently interested in data for this image.

Returns:
true if the ImageConsumer is on the list; false otherwise
See Also:
ImageConsumer
 o removeConsumer
public synchronized void removeConsumer(ImageConsumer ic)
Removes an ImageConsumer from the list of consumers interested in data for this image.

See Also:
ImageConsumer
 o startProduction
public void startProduction(ImageConsumer ic)
Adds an ImageConsumer to the list of consumers interested in data for this image, and immediately starts delivery of the image data through the ImageConsumer interface.

See Also:
ImageConsumer
 o requestTopDownLeftRightResend
public void requestTopDownLeftRightResend(ImageConsumer ic)
Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order. The request is handed to the ImageFilter for further processing, since the ability to preserve the pixel ordering depends on the filter.

See Also:
ImageConsumer

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.