public class DataAdapter extends java.lang.Object implements Propertied
Instances of this class have the following, bound, JavaBean
properties:
Name | Type | Access | Default | Description |
---|---|---|---|---|
constantMap | ConstantMap |
construction-dependent | Fired whenever any ConstantMap changes
|
PropertyChangeEvent
-s fired for the
CONSTANT_MAP
property have the originating instance of this
class as the source and the old and new values set to the appropriate
ConstantMap
s.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONSTANT_MAP
The name of the
ConstantMap "property". |
Constructor and Description |
---|
DataAdapter(DisplayAdapter displayAdapter,
visad.DataReference dataReference)
Constructs.
|
DataAdapter(DisplayAdapter displayAdapter,
visad.DataReference dataReference,
ConstantMaps constantMaps)
Constructs.
|
DataAdapter(DisplayAdapter displayAdapter,
visad.DataReference dataReference,
ConstantMaps constantMaps,
visad.DataRenderer renderer)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(visad.Action action)
Links an
Action to the data component. |
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.
|
void |
removeAction(visad.Action action)
Unlinks an
Action from the data component. |
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.
|
public static final java.lang.String CONSTANT_MAP
ConstantMap
"property".public DataAdapter(DisplayAdapter displayAdapter, visad.DataReference dataReference) throws visad.VisADException, java.rmi.RemoteException
displayAdapter
- The adapted display.dataReference
- The reference to the datum.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public DataAdapter(DisplayAdapter displayAdapter, visad.DataReference dataReference, ConstantMaps constantMaps) throws visad.VisADException, java.rmi.RemoteException
displayAdapter
- The adapted display.dataReference
- The reference to the datum.constantMaps
- The constant maps for the datum. May be
null
.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public DataAdapter(DisplayAdapter displayAdapter, visad.DataReference dataReference, ConstantMaps constantMaps, visad.DataRenderer renderer) throws visad.VisADException, java.rmi.RemoteException
displayAdapter
- The adapted display.dataReference
- The reference to the datum.constantMaps
- The constant maps for the datum. May be
null
.renderer
- The renderer for the data. May be
null
. If non-null
,
then must not have been used before.visad.VisADException
- The DataRenderer is already in-use for other
data.java.rmi.RemoteException
- Java RMI failure.public void addAction(visad.Action action) throws visad.VisADException, java.rmi.RemoteException
Action
to the data component.action
- The Action
to be linked.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void removeAction(visad.Action action) throws visad.VisADException, java.rmi.RemoteException
Action
from the data component.action
- The Action
to be unlinked.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.