public class ConstantMapComposite extends java.lang.Object implements ConstantMaps
ConstantMaps.Visitor
CONSTANT_MAP
Constructor and Description |
---|
ConstantMapComposite()
Constructs.
|
ConstantMapComposite(ConstantMaps maps)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ConstantMaps.Visitor visitor)
Accepts a
ConstantMaps.Visitor to this instance. |
protected void |
add(ConstantMaps maps)
Adds adapted
ConstantMaps to this instance. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property to this instance.
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent event)
Fires a PropertyChangeEvent.
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a PropertyChangeEvent.
|
visad.ConstantMap[] |
getConstantMaps()
Returns the
ConstantMap (s) of this instance. |
protected void |
remove(ConstantMaps maps)
Removes adapted
ConstantMaps from this instance. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from this instance.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a named property from this instance.
|
void |
setDisplay(visad.Display display)
Adds the adapted
ConstantMap (s) of this instance to a VisAD
display. |
public ConstantMapComposite()
public ConstantMapComposite(ConstantMaps maps) throws visad.VisADException, java.rmi.RemoteException
maps
- The initial ConstantMaps
for this
instance.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void add(ConstantMaps maps) throws visad.BadMappingException, visad.VisADException, java.rmi.RemoteException
ConstantMaps
to this instance.maps
- The adapted ConstantMaps
to
be added.visad.BadMappingException
- Addition of the ConstantMaps
would result in multiple values for a DisplayRealType
.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void remove(ConstantMaps maps) throws visad.VisADException, java.rmi.RemoteException
ConstantMaps
from this instance.maps
- The adapted ConstantMaps
to be
removed.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void accept(ConstantMaps.Visitor visitor) throws visad.VisADException, java.rmi.RemoteException
ConstantMaps.Visitor
to this instance.accept
in interface ConstantMaps
visitor
- The ConstantMaps.Visitor
to accept.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.ConstantMap[] getConstantMaps()
ConstantMap
(s) of this instance.getConstantMaps
in interface ConstantMaps
ConstantMap
(s) of this instance.public void setDisplay(visad.Display display) throws visad.VisADException, java.rmi.RemoteException
ConstantMap
(s) of this instance to a VisAD
display. This method should only be invoked by a DisplayAdapter.setDisplay
in interface ConstantMaps
display
- The VisAD display.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface Propertied
listener
- The PropertyChangeListener to be added.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface Propertied
name
- The name of the property.listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface Propertied
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface Propertied
name
- The name of the property.listener
- The PropertyChangeListener to be removed.protected void firePropertyChange(java.beans.PropertyChangeEvent event)
event
- The PropertyChangeEvent.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the property.oldValue
- The old value of the property.newValue
- The new value of the property.