edu.brook.ascape.view
Class ImageFeatureFixed

java.lang.Object
  |
  +--edu.brook.ascape.view.ImageFeatureConcrete
        |
        +--edu.brook.ascape.view.ImageFeatureFixed

public class ImageFeatureFixed
extends ImageFeatureConcrete

An interface for a class providing an image that doesn't change in relation to the supplied object. A number of basic sphere images are provided.

Since:
1.2.5
Version:
1.2.5
See Also:
Serialized Form

Field Summary
static java.awt.Image blackBall
          A image of a black ball.
static ImageFeatureFixed blackBallFeature
          A image feature of a black ball.
static java.awt.Image blueBall
          A image of a blue ball.
static ImageFeatureFixed blueBallFeature
          A image feature of a blue ball.
static java.awt.Image grayBall
          A image of a gray ball.
static ImageFeatureFixed grayBallFeature
          A image feature of a gray ball.
static java.awt.Image greenBall
          A image of a green ball.
static ImageFeatureFixed greenBallFeature
          A image feature of a green ball.
static java.awt.Image redBall
          A image of a red ball.
static ImageFeatureFixed redBallFeature
          A image feature of a red ball.
 
Fields inherited from class edu.brook.ascape.view.ImageFeatureConcrete
name
 
Constructor Summary
ImageFeatureFixed()
          Constructs a ImageFeatureFixed.
ImageFeatureFixed(java.lang.String name, java.awt.Image image)
          Constructs a ImageFeatureFixed.
 
Method Summary
 java.lang.Object clone()
          Clones this feature.
 java.awt.Image getImage(java.lang.Object object)
          Returns a image for the object as defined irrespective of object by setImage.
 void setImage(java.awt.Image image)
          Sets the image of this feature.
 
Methods inherited from class edu.brook.ascape.view.ImageFeatureConcrete
getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grayBall

public static final java.awt.Image grayBall
A image of a gray ball.

grayBallFeature

public static final ImageFeatureFixed grayBallFeature
A image feature of a gray ball.

redBall

public static final java.awt.Image redBall
A image of a red ball.

redBallFeature

public static final ImageFeatureFixed redBallFeature
A image feature of a red ball.

greenBall

public static final java.awt.Image greenBall
A image of a green ball.

greenBallFeature

public static final ImageFeatureFixed greenBallFeature
A image feature of a green ball.

blueBall

public static final java.awt.Image blueBall
A image of a blue ball.

blueBallFeature

public static final ImageFeatureFixed blueBallFeature
A image feature of a blue ball.

blackBall

public static final java.awt.Image blackBall
A image of a black ball.

blackBallFeature

public static final ImageFeatureFixed blackBallFeature
A image feature of a black ball.
Constructor Detail

ImageFeatureFixed

public ImageFeatureFixed()
Constructs a ImageFeatureFixed.

ImageFeatureFixed

public ImageFeatureFixed(java.lang.String name,
                         java.awt.Image image)
Constructs a ImageFeatureFixed.
Parameters:
the - image of the feature
the - user relevant name of the feature
Method Detail

getImage

public final java.awt.Image getImage(java.lang.Object object)
Returns a image for the object as defined irrespective of object by setImage.
Parameters:
object - Ignored; normally, the object the object to get a image from.
Overrides:
getImage in class ImageFeatureConcrete

setImage

public final void setImage(java.awt.Image image)
Sets the image of this feature.
Parameters:
image - the image this feature should always return

clone

public java.lang.Object clone()
Clones this feature.
Overrides:
clone in class java.lang.Object

(c) 1998-2000 The Brookings Insitution
Webpage