Package ucar.visad.display
Class ConstantMapComposite
java.lang.Object
ucar.visad.display.ConstantMapComposite
- All Implemented Interfaces:
ConstantMaps
,Propertied
- Direct Known Subclasses:
SetOfConstantMaps
,TupleOfConstantMaps
Provides support for a composite of adapted VisAD ConstantMap-s.
- Version:
- $Revision: 1.9 $
- 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
ConstructorsConstructorDescriptionConstructs.Constructs. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ConstantMaps.Visitor visitor) Accepts aConstantMaps.Visitor
to this instance.protected void
add
(ConstantMaps maps) Adds adaptedConstantMaps
to this instance.void
Adds a PropertyChangeListener to this instance.void
addPropertyChangeListener
(String name, PropertyChangeListener listener) Adds a PropertyChangeListener for a named property to this instance.protected void
Fires a PropertyChangeEvent.protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent.Returns theConstantMap
(s) of this instance.protected void
remove
(ConstantMaps maps) Removes adaptedConstantMaps
from this instance.void
Removes a PropertyChangeListener from this instance.void
removePropertyChangeListener
(String name, PropertyChangeListener listener) Removes a PropertyChangeListener for a named property from this instance.void
setDisplay
(Display display) Adds the adaptedConstantMap
(s) of this instance to a VisAD display.
-
Constructor Details
-
ConstantMapComposite
public ConstantMapComposite()Constructs. -
ConstantMapComposite
Constructs.- Parameters:
maps
- The initialConstantMaps
for this instance.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
add
Adds adaptedConstantMaps
to this instance.- Parameters:
maps
- The adaptedConstantMaps
to be added.- Throws:
BadMappingException
- Addition of theConstantMaps
would result in multiple values for aDisplayRealType
.VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
remove
Removes adaptedConstantMaps
from this instance.- Parameters:
maps
- The adaptedConstantMaps
to be removed.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
accept
Accepts aConstantMaps.Visitor
to this instance.- Specified by:
accept
in interfaceConstantMaps
- Parameters:
visitor
- TheConstantMaps.Visitor
to accept.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getConstantMaps
Returns theConstantMap
(s) of this instance.- Specified by:
getConstantMaps
in interfaceConstantMaps
- Returns:
- The
ConstantMap
(s) of this instance.
-
setDisplay
Adds the adaptedConstantMap
(s) of this instance to a VisAD display. This method should only be invoked by a DisplayAdapter.- Specified by:
setDisplay
in interfaceConstantMaps
- Parameters:
display
- The VisAD display.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
addPropertyChangeListener
Adds a PropertyChangeListener to this instance.- Specified by:
addPropertyChangeListener
in interfacePropertied
- Parameters:
listener
- The PropertyChangeListener to be added.
-
addPropertyChangeListener
Adds a PropertyChangeListener for a named property to this instance.- Specified by:
addPropertyChangeListener
in interfacePropertied
- Parameters:
name
- The name of the property.listener
- The PropertyChangeListener to be added.
-
removePropertyChangeListener
Removes a PropertyChangeListener from this instance.- Specified by:
removePropertyChangeListener
in interfacePropertied
- Parameters:
listener
- The PropertyChangeListener to be removed.
-
removePropertyChangeListener
Removes a PropertyChangeListener for a named property from this instance.- Specified by:
removePropertyChangeListener
in interfacePropertied
- Parameters:
name
- The name of the property.listener
- The PropertyChangeListener to be removed.
-
firePropertyChange
Fires a PropertyChangeEvent.- Parameters:
event
- The PropertyChangeEvent.
-
firePropertyChange
Fires a PropertyChangeEvent.- Parameters:
propertyName
- The name of the property.oldValue
- The old value of the property.newValue
- The new value of the property.
-