|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.util.vis.ImageFeatureConcrete
public abstract class ImageFeatureConcrete
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.
| 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 | |
|---|---|
static java.awt.Image |
createImage(java.lang.String string)
Utility method to return an image resource as specified according to the rules of Class.getResource. |
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 |
| Constructor Detail |
|---|
public ImageFeatureConcrete()
public ImageFeatureConcrete(java.lang.String name)
name - the user relevant name of the feature| Method Detail |
|---|
public java.lang.String getName()
getName in interface HasNamepublic final void setName(java.lang.String name)
name - a user relevant name for this featurepublic abstract java.awt.Image getImage(java.lang.Object object)
getImage in interface ImageFeatureobject - the object to get a image from.public static java.awt.Image createImage(java.lang.String string)
string - the resource reference of the image to load
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||