edu.brook.ascape.view
Class ImageFeatureConcrete

java.lang.Object
  |
  +--edu.brook.ascape.view.ImageFeatureConcrete
Direct Known Subclasses:
ImageFeatureFixed

public abstract class ImageFeatureConcrete
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, ImageFeature

A Image feature returns a image based on the state of an object of known type provided to it. This class provides a concrete version of image feature for convenience in implementing subclasses. Used to provide an appropriate image for some feature or aspect of an object.

Since:
1.2.5
Version:
1.2.5
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          The name of the feature.
 
Constructor Summary
ImageFeatureConcrete()
          Constructs a concrete instantiation of a image feature.
ImageFeatureConcrete(java.lang.String name)
          Constructs a concrete instantiation of a image feature with the supplied name.
 
Method Summary
abstract  java.awt.Image getImage(java.lang.Object object)
          Returns a image for the object as defined in implementions of this class.
 java.lang.String getName()
          Returns a name for the object as defined by set name.
 void setName(java.lang.String name)
          Sets the name of this feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the feature.
Constructor Detail

ImageFeatureConcrete

public ImageFeatureConcrete()
Constructs a concrete instantiation of a image feature.

ImageFeatureConcrete

public ImageFeatureConcrete(java.lang.String name)
Constructs a concrete instantiation of a image feature with the supplied name.
Parameters:
the - user relevant name of the feature
Method Detail

getName

public java.lang.String getName()
Returns a name for the object as defined by set name.

setName

public final void setName(java.lang.String name)
Sets the name of this feature.
Parameters:
name - a user relevant name for this feature

getImage

public abstract java.awt.Image getImage(java.lang.Object object)
Returns a image for the object as defined in implementions of this class.
Specified by:
getImage in interface ImageFeature
Parameters:
object - the object to get a image from.

(c) 1998-2000 The Brookings Insitution
Webpage