|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.jai.PlanarImage
javax.media.jai.RenderedImageAdapter
javax.media.jai.AttributedImage
public class AttributedImage
A class which associates a PlanarImage
with an attribute
of unspecified type. The class is itself a PlanarImage
equivalent to the one which it wraps.
Field Summary | |
---|---|
protected Object |
attribute
The attribute associated with the image. |
Fields inherited from class javax.media.jai.RenderedImageAdapter |
---|
theImage |
Fields inherited from class javax.media.jai.PlanarImage |
---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
Constructor Summary | |
---|---|
AttributedImage(PlanarImage image,
Object attribute)
Constructs an AttributedImage . |
Method Summary | |
---|---|
boolean |
equals(Object o)
Tests for equality. |
Object |
getAttribute()
Retrieves the attribute. |
PlanarImage |
getImage()
Retrieves the wrapped image. |
void |
setAttribute(Object attribute)
Stores the attribute. |
String |
toString()
toString() method. |
Methods inherited from class javax.media.jai.RenderedImageAdapter |
---|
copyData, getData, getData, getProperty, getPropertyClass, getPropertyNames, getTile, getWrappedImage |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object attribute
Constructor Detail |
---|
public AttributedImage(PlanarImage image, Object attribute)
AttributedImage
. The attribute parameter
may be null
IllegalArgumentException
- if theImage
is
null
.Method Detail |
---|
public PlanarImage getImage()
public void setAttribute(Object attribute)
public Object getAttribute()
public boolean equals(Object o)
Object
must be
an AttributedImage
the image and attribute of which
are equal those of this object according to the equals()
methods of the image and attribute of this image, respectively.
Attributes are also considered equal if they are both null
.
equals
in class Object
public String toString()
toString
in class PlanarImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |