ucar.visad.display
Class RGBConstantMaps

java.lang.Object
  extended by ucar.visad.display.ConstantMapComposite
      extended by ucar.visad.display.TupleOfConstantMaps
          extended by ucar.visad.display.RGBConstantMaps
All Implemented Interfaces:
ConstantMaps, Propertied

public class RGBConstantMaps
extends TupleOfConstantMaps

Provides support for a modifiable composite of adapted red, green, and blue, VisAD ConstantMap-s.

Instances of this class have the following, bound, JavaBean properties:

Name Type Access Default Description
color Color set/get white The color of this instance

Version:
$Revision: 1.7 $
Author:
Steven R. Emmerson

Nested Class Summary
 
Nested classes/interfaces inherited from interface ucar.visad.display.ConstantMaps
ConstantMaps.Visitor
 
Field Summary
static String COLOR
          The name of the color property.
 
Fields inherited from interface ucar.visad.display.ConstantMaps
CONSTANT_MAP
 
Constructor Summary
RGBConstantMaps()
          Constructs.
RGBConstantMaps(Color color)
          Constructs.
 
Method Summary
 Color getColor(Color color)
          Returns the color of this instance.
 void setColor(Color color)
          Sets the color of this instance.
 
Methods inherited from class ucar.visad.display.ConstantMapComposite
accept, add, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getConstantMaps, remove, removePropertyChangeListener, removePropertyChangeListener, setDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR

public static final String COLOR
The name of the color property.

See Also:
Constant Field Values
Constructor Detail

RGBConstantMaps

public RGBConstantMaps()
                throws VisADException,
                       RemoteException
Constructs. The initial color is white.

Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

RGBConstantMaps

public RGBConstantMaps(Color color)
                throws VisADException,
                       RemoteException
Constructs.

Parameters:
color - The initial color for this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setColor

public void setColor(Color color)
              throws VisADException,
                     RemoteException
Sets the color of this instance.

Parameters:
color - Color for this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getColor

public Color getColor(Color color)
Returns the color of this instance. This implementation just returns its argument.

Parameters:
color - The color of this instance.
Returns:
The color of this instance.