|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.DisplayAdapter
public class DisplayAdapter
Provides support for adapting VisAD Display-s into something that is
(hopefully) easier to use. Instances of this class have a separate thread
that updates the display. The thread runs at a lower priority than the
creating thread in order to allow the accumulation of a bunch of changes to
the display. Instances of this class also track changes to the JavaBean
properties of added ScalarMapAdapters and ConstantMapAdapters
and modify the underlying VisAD display as necessary.
| Constructor Summary | |
|---|---|
DisplayAdapter(DisplayImpl display)
Constructs. |
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayAdapter(DisplayImpl display)
throws DisplayException,
VisADException,
RemoteException
display - The VisAD display to use.
DisplayException - The VisAD display is null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public int getDimensionality()
public final ScalarMapAdapter accept(ScalarMapAdapter adapter)
throws VisADException,
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.
VisADException - VisAD failure.
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 VisADException,
RemoteException
dataAdapter - The adapted data object to be added to this
instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void remove(DataAdapter dataAdapter)
throws VisADException,
RemoteException
dataAdapter - The adapted, VisAD data object to be removed
from this instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void add(ConstantMaps constantMaps)
throws BadMappingException,
VisADException,
RemoteException
ConstantMap(s).
constantMaps - The adapted, VisAD ConstantMaps
to be added to this instance.
BadMappingException - The addition of the ConstantMap-s would cause a
DisplayRealType to have
multiple values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void remove(ConstantMaps constantMaps)
throws VisADException,
RemoteException
ConstantMaps.
constantMaps - The adapted, VisAD
ConstantMap-s
to be removed from this instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Component getComponent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||