| |
|
| java.lang.Object javax.media.jai.CollectionImage javax.media.jai.AttributedImageCollection
AttributedImageCollection | public class AttributedImageCollection extends CollectionImage (Code) | | Class representing a CollectionImage wherein all image elements are
AttributedImage instances. All Collection methods will be overridden
such that contained images are forced to be AttributedImages.
Note that the methods getAll(attribute) and
removeAll(attribute) use the equals() method
of the attribute parameter rather that that of the
AttributedImage s in the Collection . This
permits "filtering" if the attribute of the AttributedImage s
contains more than one type of value. For example, if the attribute
contained both position and time, then the parameter attribute
could be an instance of a class which compared only the position if it
were desired to obtain or remove all images at a given position
irrespective of the time stamp.
since: JAI 1.1 |
Method Summary | |
public boolean | add(Object o) Adds the specified object to this Collection . | public boolean | addAll(Collection c) Adds to this Collection all elements in the specified
Collection which are AttributedImage s. | public Set | getAll(Object attribute) Returns a Set of all AttributedImages the attribute of which is
equal to the parameter object according to the equals() method of
the parameter object. | public Set | getAll(PlanarImage image) Returns a Set of all AttributedImages the image of which is equal
to the parameter image. | public AttributedImage | getAttributedImage(PlanarImage image) Returns the first attributed image found in the collection
that contains the planar image argument. | public AttributedImage | getAttributedImage(Object attribute) Returns the first attributed image found in the collection
that contains the attribute. | public Set | removeAll(Object attribute) Removes all AttributedImages the attribute of which is
equal to the parameter object according to the equals() method of the
parameter object. | public Set | removeAll(PlanarImage image) Removes all AttributedImages the image of which is equal to the
parameter image. |
AttributedImageCollection | protected AttributedImageCollection()(Code) | | |
AttributedImageCollection | public AttributedImageCollection(Collection images)(Code) | | Constructs an AttributedImageCollection with contents
set to the contents of the supplied Collection . Only
elements in the Collection which are instances of
AttributedImage will be added.
throws: IllegalArgumentException - if images is null |
add | public boolean add(Object o)(Code) | | Adds the specified object to this Collection . This
method overrides the superclass method in order to perform a
type check on the object being added.
throws: IllegalArgumentException - if o is null or is not an AttributedImage . true if and only if the parameter is added to theCollection . |
addAll | public boolean addAll(Collection c)(Code) | | Adds to this Collection all elements in the specified
Collection which are AttributedImage s.
true if this Collection changedas a result of the call. |
getAll | public Set getAll(Object attribute)(Code) | | Returns a Set of all AttributedImages the attribute of which is
equal to the parameter object according to the equals() method of
the parameter object. If no match is found null will be returned.
If the parameter is null a Set view of all AttributedImages in the
Collection will be returned.
|
getAll | public Set getAll(PlanarImage image)(Code) | | Returns a Set of all AttributedImages the image of which is equal
to the parameter image. If no match is found null will be returned.
If the parameter is null a Set view of all AttributedImages in the
Collection will be returned.
|
getAttributedImage | public AttributedImage getAttributedImage(PlanarImage image)(Code) | | Returns the first attributed image found in the collection
that contains the planar image argument. If the parameter is
null, null will be returned.
|
getAttributedImage | public AttributedImage getAttributedImage(Object attribute)(Code) | | Returns the first attributed image found in the collection
that contains the attribute. If the parameter is
null, null will be returned.
|
removeAll | public Set removeAll(Object attribute)(Code) | | Removes all AttributedImages the attribute of which is
equal to the parameter object according to the equals() method of the
parameter object. The returned value contains all AttributedImages
which were removed from the underlying Collection or null if no
match was found. If the parameter is null, null will be returned.
|
removeAll | public Set removeAll(PlanarImage image)(Code) | | Removes all AttributedImages the image of which is equal to the
parameter image. The returned value contains all AttributedImages
which were removed from the underlying Collection or null if no
match was found. If the parameter is null, null will be returned.
|
|
|
|