ucar.visad.display
Class RGBConstantMaps
java.lang.Object
ucar.visad.display.ConstantMapComposite
ucar.visad.display.TupleOfConstantMaps
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
|
Field Summary |
static String |
COLOR
The name of the color property. |
| 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 |
COLOR
public static final String COLOR
- The name of the color property.
- See Also:
- Constant Field Values
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.
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.