public class DisplayAdapter
extends java.lang.Object
ScalarMapAdapters and ConstantMapAdapters
and modify the underlying VisAD display as necessary.| Constructor and Description |
|---|
DisplayAdapter(visad.DisplayImpl display)
Constructs.
|
| Modifier and Type | Method and Description |
|---|---|
ScalarMapAdapter |
accept(ScalarMapAdapter adapter)
Accepts a ScalarMapAdapter for inclusion.
|
void |
add(ConstantMaps constantMaps)
Adds adapted, VisAD
ConstantMap(s). |
void |
add(DataAdapter dataAdapter)
Adds an adapted, VisAD data object.
|
java.awt.Component |
getComponent()
Returns the AWT component.
|
int |
getDimensionality()
Returns the dimensionality of the display.
|
void |
remove(ConstantMaps constantMaps)
Removes adapted, VisAD
ConstantMaps. |
void |
remove(DataAdapter dataAdapter)
Removes an adapted, VisAD data object.
|
void |
remove(ScalarMapAdapter adapter)
Removes an adapted, VisAD ScalarMap.
|
public DisplayAdapter(visad.DisplayImpl display)
throws visad.DisplayException,
visad.VisADException,
java.rmi.RemoteException
display - The VisAD display to use.visad.DisplayException - The VisAD display is null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public int getDimensionality()
public final ScalarMapAdapter accept(ScalarMapAdapter adapter) throws visad.VisADException, java.rmi.RemoteException
ScalarMap). If a ScalarMapAdapter was previously added,
then subsequent additions result in the underlying
ScalarMap of the ScalarMapAdapter being set to that of
the previously- added ScalarMapAdapter (the "controlling"
ScalarMapAdapter). Otherwise, the ScalarMapAdapter is simply added
and returned. In either case, this instance registers itself with the
ScalarMapAdapter as a PropertyChangeListener for
the ScalarMapAdapter.SCALAR_MAP property. A change to the
ScalarMapAdapter's underlying ScalarMap will cause the display to
be rebuilt, if ncessary.adapter - The adapted ScalarMap to accept.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void remove(ScalarMapAdapter adapter)
adapter - The ScalarMapAdapter to be removed from
this instance.public final void add(DataAdapter dataAdapter) throws visad.VisADException, java.rmi.RemoteException
dataAdapter - The adapted data object to be added to this
instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void remove(DataAdapter dataAdapter) throws visad.VisADException, java.rmi.RemoteException
dataAdapter - The adapted, VisAD data object to be removed
from this instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void add(ConstantMaps constantMaps) throws visad.BadMappingException, visad.VisADException, java.rmi.RemoteException
ConstantMap(s).constantMaps - The adapted, VisAD ConstantMaps
to be added to this instance.visad.BadMappingException - The addition of the ConstantMap-s would cause a
DisplayRealType to have
multiple values.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void remove(ConstantMaps constantMaps) throws visad.VisADException, java.rmi.RemoteException
ConstantMaps.constantMaps - The adapted, VisAD
ConstantMap-s
to be removed from this instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public java.awt.Component getComponent()