visad
Class RemoteDisplayImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by visad.RemoteActionImpl
                  extended by visad.RemoteDisplayImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, java.util.EventListener, Action, Display, RemoteAction, RemoteDisplay, ThingChangedListener

public class RemoteDisplayImpl
extends RemoteActionImpl
implements RemoteDisplay

RemoteDisplayImpl is the VisAD class for remote access to Display-s.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface visad.Display
Alpha, Animation, Blue, CMY, components3c, components3s, componentscmy, componentscyl, componentsflow1, componentsflow1s, componentsflow2, componentsflow2s, componentshsv, componentsrgb, componentsso, Cyan, CylAzimuth, CylRadius, CylZAxis, DisplayCMYCoordSys, DisplayCMYTuple, DisplayCylindricalCoordSys, DisplayFlow1SphericalCoordSys, DisplayFlow1SphericalTuple, DisplayFlow1Tuple, DisplayFlow2SphericalCoordSys, DisplayFlow2SphericalTuple, DisplayFlow2Tuple, DisplayHSVCoordSys, DisplayHSVTuple, DisplayRealArray, DisplayRGBTuple, DisplaySpatialCartesianTuple, DisplaySpatialCylindricalTuple, DisplaySpatialOffsetTuple, DisplaySpatialSphericalTuple, DisplaySphericalCoordSys, Flow1Azimuth, Flow1Elevation, Flow1Radial, Flow1X, Flow1Y, Flow1Z, Flow2Azimuth, Flow2Elevation, Flow2Radial, Flow2X, Flow2Y, Flow2Z, Green, HSV, Hue, IsoContour, Latitude, LineStyle, LineWidth, List, Longitude, Magenta, PointSize, Radius, Red, RGB, RGBA, Saturation, SelectRange, SelectValue, Shape, ShapeScale, Text, TextureEnable, Value, XAxis, XAxisOffset, YAxis, YAxisOffset, Yellow, ZAxis, ZAxisOffset
 
Constructor Summary
RemoteDisplayImpl(DisplayImpl d)
           
 
Method Summary
 void addMap(ScalarMap map)
          add a ScalarMap to this Display
 void addReference(DataReference ref, ConstantMap[] constant_maps)
          link ref to this Display; must be RemoteDataReference; this method may only be invoked after all links to ScalarMaps have been made; the ConstantMap array applies only to rendering ref
 void addReference(ThingReference ref)
          link ref to this Display; this method may only be invoked after all links to ScalarMaps have been made
 void addReferences(DataRenderer renderer, DataReference ref)
          link ref to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information
 void addReferences(DataRenderer renderer, DataReference[] refs)
          link refs to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information
 void addReferences(DataRenderer renderer, DataReference[] refs, ConstantMap[][] constant_maps)
          link refs to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i]; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information
 void addReferences(DataRenderer renderer, DataReference ref, ConstantMap[] constant_maps)
          link ref to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; the maps array applies only to rendering ref; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information
 void addSlave(RemoteSlaveDisplay display)
          links a slave display to this display
 void clearMaps()
          clear set of ScalarMap-s associated with this display
 void destroy()
          destroy this display
 java.util.Vector getConstantMapVector()
           
 int getDisplayAPI()
           
 java.lang.String getDisplayClassName()
           
 java.lang.String getDisplayRendererClassName()
           
 DisplaySync getDisplaySync()
          Returns a remotely-usable wrapper for the associated Display's synchronization object.
 GraphicsModeControl getGraphicsModeControl()
           
 java.util.Vector getMapVector()
           
 java.util.Vector getReferenceLinks()
           
 RemoteDisplayMonitor getRemoteDisplayMonitor()
           
 RemoteDisplaySync getRemoteDisplaySync()
          Returns a remotely-usable wrapper for the associated Display's synchronization object.
 boolean hasSlaves()
          whether there are any slave displays linked to this display
 void removeAllSlaves()
          removes all links between slave displays and this display
 void removeReference(ThingReference ref)
          remove link to a DataReference; because DataReference array input to adaptedAddReferences may be a mix of local and remote, we tolerate either here
 void removeSlave(RemoteSlaveDisplay display)
          removes a link between a slave display and this display
 void sendMessage(MessageEvent msg)
          Send a message to all MessageListeners.
 void sendMouseEvent(java.awt.event.MouseEvent e)
          sends a mouse event to this remote display's associated display
 
Methods inherited from class visad.RemoteActionImpl
getName, removeAllReferences, thingChanged
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface visad.RemoteDisplay
getName
 
Methods inherited from interface visad.Action
removeAllReferences
 
Methods inherited from interface visad.ThingChangedListener
thingChanged
 

Constructor Detail

RemoteDisplayImpl

public RemoteDisplayImpl(DisplayImpl d)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

addSlave

public void addSlave(RemoteSlaveDisplay display)
              throws VisADException,
                     java.rmi.RemoteException
links a slave display to this display

Specified by:
addSlave in interface Display
Throws:
VisADException
java.rmi.RemoteException

removeSlave

public void removeSlave(RemoteSlaveDisplay display)
                 throws VisADException,
                        java.rmi.RemoteException
removes a link between a slave display and this display

Specified by:
removeSlave in interface Display
Throws:
VisADException
java.rmi.RemoteException

removeAllSlaves

public void removeAllSlaves()
                     throws VisADException,
                            java.rmi.RemoteException
removes all links between slave displays and this display

Specified by:
removeAllSlaves in interface Display
Throws:
VisADException
java.rmi.RemoteException

hasSlaves

public boolean hasSlaves()
                  throws VisADException,
                         java.rmi.RemoteException
whether there are any slave displays linked to this display

Specified by:
hasSlaves in interface Display
Throws:
VisADException
java.rmi.RemoteException

sendMouseEvent

public void sendMouseEvent(java.awt.event.MouseEvent e)
                    throws VisADException,
                           java.rmi.RemoteException
sends a mouse event to this remote display's associated display

Specified by:
sendMouseEvent in interface RemoteDisplay
Throws:
VisADException
java.rmi.RemoteException

addReference

public void addReference(ThingReference ref)
                  throws VisADException,
                         java.rmi.RemoteException
link ref to this Display; this method may only be invoked after all links to ScalarMaps have been made

Specified by:
addReference in interface Action
Overrides:
addReference in class RemoteActionImpl
Throws:
VisADException
java.rmi.RemoteException

addReference

public void addReference(DataReference ref,
                         ConstantMap[] constant_maps)
                  throws VisADException,
                         java.rmi.RemoteException
link ref to this Display; must be RemoteDataReference; this method may only be invoked after all links to ScalarMaps have been made; the ConstantMap array applies only to rendering ref

Specified by:
addReference in interface Display
Throws:
VisADException
java.rmi.RemoteException

addReferences

public void addReferences(DataRenderer renderer,
                          DataReference ref)
                   throws VisADException,
                          java.rmi.RemoteException
link ref to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information

Throws:
VisADException
java.rmi.RemoteException

addReferences

public void addReferences(DataRenderer renderer,
                          DataReference ref,
                          ConstantMap[] constant_maps)
                   throws VisADException,
                          java.rmi.RemoteException
link ref to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; the maps array applies only to rendering ref; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information

Specified by:
addReferences in interface Display
Throws:
VisADException
java.rmi.RemoteException

addReferences

public void addReferences(DataRenderer renderer,
                          DataReference[] refs)
                   throws VisADException,
                          java.rmi.RemoteException
link refs to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information

Throws:
VisADException
java.rmi.RemoteException

addReferences

public void addReferences(DataRenderer renderer,
                          DataReference[] refs,
                          ConstantMap[][] constant_maps)
                   throws VisADException,
                          java.rmi.RemoteException
link refs to this Display using the non-default renderer; refs may be a mix of RemoteDataReference & DataReferenceImpl; cannot be called through RemoteDisplay interface, since renderer implements neither Remote nor Serializable; must be called locally; this method may only be invoked after all links to ScalarMaps have been made; the maps[i] array applies only to rendering refs[i]; this is a method of DisplayImpl and RemoteDisplayImpl rather than Display - see Section 6.1 of the Developer's Guide for more information

Throws:
VisADException
java.rmi.RemoteException

removeReference

public void removeReference(ThingReference ref)
                     throws VisADException,
                            java.rmi.RemoteException
remove link to a DataReference; because DataReference array input to adaptedAddReferences may be a mix of local and remote, we tolerate either here

Specified by:
removeReference in interface Action
Overrides:
removeReference in class RemoteActionImpl
Throws:
VisADException
java.rmi.RemoteException

addMap

public void addMap(ScalarMap map)
            throws VisADException,
                   java.rmi.RemoteException
add a ScalarMap to this Display

Specified by:
addMap in interface Display
Throws:
VisADException
java.rmi.RemoteException

clearMaps

public void clearMaps()
               throws VisADException,
                      java.rmi.RemoteException
clear set of ScalarMap-s associated with this display

Specified by:
clearMaps in interface Display
Throws:
VisADException
java.rmi.RemoteException

destroy

public void destroy()
             throws VisADException,
                    java.rmi.RemoteException
destroy this display

Specified by:
destroy in interface Display
Throws:
VisADException
java.rmi.RemoteException

getDisplayClassName

public java.lang.String getDisplayClassName()
                                     throws java.rmi.RemoteException
Specified by:
getDisplayClassName in interface RemoteDisplay
Throws:
java.rmi.RemoteException

getDisplayAPI

public int getDisplayAPI()
                  throws java.rmi.RemoteException,
                         VisADException
Specified by:
getDisplayAPI in interface RemoteDisplay
Throws:
java.rmi.RemoteException
VisADException

getDisplayRendererClassName

public java.lang.String getDisplayRendererClassName()
                                             throws java.rmi.RemoteException
Specified by:
getDisplayRendererClassName in interface RemoteDisplay
Throws:
java.rmi.RemoteException

getMapVector

public java.util.Vector getMapVector()
                              throws VisADException,
                                     java.rmi.RemoteException
Specified by:
getMapVector in interface RemoteDisplay
Throws:
VisADException
java.rmi.RemoteException

getConstantMapVector

public java.util.Vector getConstantMapVector()
                                      throws VisADException,
                                             java.rmi.RemoteException
Specified by:
getConstantMapVector in interface Display
Specified by:
getConstantMapVector in interface RemoteDisplay
Throws:
VisADException
java.rmi.RemoteException

getGraphicsModeControl

public GraphicsModeControl getGraphicsModeControl()
                                           throws VisADException,
                                                  java.rmi.RemoteException
Specified by:
getGraphicsModeControl in interface RemoteDisplay
Throws:
VisADException
java.rmi.RemoteException

getReferenceLinks

public java.util.Vector getReferenceLinks()
                                   throws VisADException,
                                          java.rmi.RemoteException
Specified by:
getReferenceLinks in interface RemoteDisplay
Throws:
VisADException
java.rmi.RemoteException

getRemoteDisplayMonitor

public RemoteDisplayMonitor getRemoteDisplayMonitor()
                                             throws java.rmi.RemoteException
Specified by:
getRemoteDisplayMonitor in interface RemoteDisplay
Throws:
java.rmi.RemoteException

getDisplaySync

public DisplaySync getDisplaySync()
                           throws java.rmi.RemoteException
Returns a remotely-usable wrapper for the associated Display's synchronization object.

Specified by:
getDisplaySync in interface RemoteDisplay
Throws:
java.rmi.RemoteException

getRemoteDisplaySync

public RemoteDisplaySync getRemoteDisplaySync()
                                       throws java.rmi.RemoteException
Returns a remotely-usable wrapper for the associated Display's synchronization object.

Specified by:
getRemoteDisplaySync in interface RemoteDisplay
Throws:
java.rmi.RemoteException

sendMessage

public void sendMessage(MessageEvent msg)
                 throws java.rmi.RemoteException
Send a message to all MessageListeners.

Specified by:
sendMessage in interface Display
Parameters:
msg - Message being sent.
Throws:
java.rmi.RemoteException