|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.DataAdapter
public class DataAdapter
Provides support for adapting VisAD data objects into something that is (hopefully) easier to use. This class aggregates a VisAD Display, a DataReference, a DataRenderer, and associated ConstantMap-s into a single entity.
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
ConstantMaps.
| Field Summary | |
|---|---|
static String |
CONSTANT_MAP
The name of the ConstantMap "property". |
| Constructor Summary | |
|---|---|
DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference)
Constructs. |
|
DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference,
ConstantMaps constantMaps)
Constructs. |
|
DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference,
ConstantMaps constantMaps,
DataRenderer renderer)
Constructs. |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Links an Action to the data component. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance. |
void |
addPropertyChangeListener(String name,
PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property to this instance. |
protected void |
firePropertyChange(PropertyChangeEvent event)
Fires a PropertyChangeEvent. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fires a PropertyChangeEvent. |
void |
removeAction(Action action)
Unlinks an Action from the data component. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from this instance. |
void |
removePropertyChangeListener(String name,
PropertyChangeListener listener)
Removes a PropertyChangeListener for a named property from this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONSTANT_MAP
ConstantMap "property".
| Constructor Detail |
|---|
public DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference)
throws VisADException,
RemoteException
displayAdapter - The adapted display.dataReference - The reference to the datum.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference,
ConstantMaps constantMaps)
throws VisADException,
RemoteException
displayAdapter - The adapted display.dataReference - The reference to the datum.constantMaps - The constant maps for the datum. May be
null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public DataAdapter(DisplayAdapter displayAdapter,
DataReference dataReference,
ConstantMaps constantMaps,
DataRenderer renderer)
throws VisADException,
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.
VisADException - The DataRenderer is already in-use for other
data.
RemoteException - Java RMI failure.| Method Detail |
|---|
public void addAction(Action action)
throws VisADException,
RemoteException
Action to the data component.
action - The Action to be linked.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void removeAction(Action action)
throws VisADException,
RemoteException
Action from the data component.
action - The Action to be unlinked.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface Propertiedlistener - The PropertyChangeListener to be added.
public void addPropertyChangeListener(String name,
PropertyChangeListener listener)
addPropertyChangeListener in interface Propertiedname - The name of the property.listener - The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface Propertiedlistener - The PropertyChangeListener to be removed.
public void removePropertyChangeListener(String name,
PropertyChangeListener listener)
removePropertyChangeListener in interface Propertiedname - The name of the property.listener - The PropertyChangeListener to be removed.protected void firePropertyChange(PropertyChangeEvent event)
event - The PropertyChangeEvent.
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
propertyName - The name of the property.oldValue - The old value of the property.newValue - The new value of the property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||