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 TypeMethodDescriptionvoidaccept(ConstantMaps.Visitor visitor) Accepts aConstantMaps.Visitorto this instance.protected voidadd(ConstantMaps maps) Adds adaptedConstantMapsto this instance.voidAdds a PropertyChangeListener to this instance.voidaddPropertyChangeListener(String name, PropertyChangeListener listener) Adds a PropertyChangeListener for a named property to this instance.protected voidFires a PropertyChangeEvent.protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent.Returns theConstantMap(s) of this instance.protected voidremove(ConstantMaps maps) Removes adaptedConstantMapsfrom this instance.voidRemoves a PropertyChangeListener from this instance.voidremovePropertyChangeListener(String name, PropertyChangeListener listener) Removes a PropertyChangeListener for a named property from this instance.voidsetDisplay(Display display) Adds the adaptedConstantMap(s) of this instance to a VisAD display.
-
Constructor Details
-
ConstantMapComposite
public ConstantMapComposite()Constructs. -
ConstantMapComposite
Constructs.- Parameters:
maps- The initialConstantMapsfor this instance.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
-
Method Details
-
add
Adds adaptedConstantMapsto this instance.- Parameters:
maps- The adaptedConstantMapsto be added.- Throws:
BadMappingException- Addition of theConstantMapswould result in multiple values for aDisplayRealType.VisADException- VisAD failure.RemoteException- Java RMI failure.
-
remove
Removes adaptedConstantMapsfrom this instance.- Parameters:
maps- The adaptedConstantMapsto be removed.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
accept
Accepts aConstantMaps.Visitorto this instance.- Specified by:
acceptin interfaceConstantMaps- Parameters:
visitor- TheConstantMaps.Visitorto accept.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getConstantMaps
Returns theConstantMap(s) of this instance.- Specified by:
getConstantMapsin 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:
setDisplayin interfaceConstantMaps- Parameters:
display- The VisAD display.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
addPropertyChangeListener
Adds a PropertyChangeListener to this instance.- Specified by:
addPropertyChangeListenerin interfacePropertied- Parameters:
listener- The PropertyChangeListener to be added.
-
addPropertyChangeListener
Adds a PropertyChangeListener for a named property to this instance.- Specified by:
addPropertyChangeListenerin interfacePropertied- Parameters:
name- The name of the property.listener- The PropertyChangeListener to be added.
-
removePropertyChangeListener
Removes a PropertyChangeListener from this instance.- Specified by:
removePropertyChangeListenerin interfacePropertied- Parameters:
listener- The PropertyChangeListener to be removed.
-
removePropertyChangeListener
Removes a PropertyChangeListener for a named property from this instance.- Specified by:
removePropertyChangeListenerin 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.
-