org.ascape.util.vis
Class ImageFeatureFixed

java.lang.Object
  extended by org.ascape.util.vis.ImageFeatureConcrete
      extended by org.ascape.util.vis.ImageFeatureFixed
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HasName, ImageFeature

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
Author:
Miles Parker
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 orangeBall
          A image of an orange ball.
static ImageFeatureFixed orangeBallFeature
          A image feature of am orange ball.
static java.awt.Image redBall
          A image of a red ball.
static ImageFeatureFixed redBallFeature
          A image feature of a red ball.
 
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 org.ascape.util.vis.ImageFeatureConcrete
createImage, 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.


orangeBall

public static final java.awt.Image orangeBall
A image of an orange ball.


orangeBallFeature

public static final ImageFeatureFixed orangeBallFeature
A image feature of am orange 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:
name - the image of the feature
image - 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.

Specified by:
getImage in interface ImageFeature
Specified by:
getImage in class ImageFeatureConcrete
Parameters:
object - Ignored; normally, the object the object to get a image from.

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


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.