ucar.visad.display
Class SetOfConstantMaps

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

public class SetOfConstantMaps
extends ConstantMapComposite

Provides support for a composite of adapted VisAD ConstantMap-s with an extensible number of components.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface ucar.visad.display.ConstantMaps
ConstantMaps.Visitor
 
Field Summary
 
Fields inherited from interface ucar.visad.display.ConstantMaps
CONSTANT_MAP
 
Constructor Summary
SetOfConstantMaps()
          Constructs.
SetOfConstantMaps(ConstantMaps maps)
          Constructs.
 
Method Summary
 void add(ConstantMaps maps)
          Adds adapted, ConstantMaps to this instance.
 
Methods inherited from class ucar.visad.display.ConstantMapComposite
accept, 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
 

Constructor Detail

SetOfConstantMaps

public SetOfConstantMaps()
Constructs.


SetOfConstantMaps

public SetOfConstantMaps(ConstantMaps maps)
                  throws BadMappingException,
                         VisADException,
                         RemoteException
Constructs.

Parameters:
maps - The adapted, ConstantMaps to initially comprise this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
BadMappingException - if addition of the ConstantMaps would result in multiple values for a DisplayRealType.
Method Detail

add

public void add(ConstantMaps maps)
         throws BadMappingException,
                VisADException,
                RemoteException
Adds adapted, ConstantMaps to this instance.

Overrides:
add in class ConstantMapComposite
Parameters:
maps - The adapted, ConstantMaps to be added to this instance.
Throws:
BadMappingException - Addition of the ConstantMaps would result is a DisplayRealType having multiple values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.