visad
Class RemoteDisplayImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- visad.RemoteActionImpl
-
- 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 interface visad.Display
AdjustProjectionSeam, Alpha, Animation, Blue, CacheAppearances, CMY, ColorMode, components3c, components3s, componentscmy, componentscyl, componentsflow1, componentsflow1s, componentsflow2, componentsflow2s, componentshsv, componentsrgb, componentsso, CurvedSize, 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, MergeGeometries, MissingTransparent, PointMode, PointSize, PolygonMode, PolygonOffset, PolygonOffsetFactor, Radius, Red, RGB, RGBA, Saturation, SelectRange, SelectValue, Shape, ShapeScale, Text, Texture3DMode, TextureEnable, Value, XAxis, XAxisOffset, YAxis, YAxisOffset, Yellow, ZAxis, ZAxisOffset
-
-
Constructor Summary
Constructors Constructor and Description RemoteDisplayImpl(DisplayImpl d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddMap(ScalarMap map)add a ScalarMap to this DisplayvoidaddReference(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 refvoidaddReference(ThingReference ref)link ref to this Display; this method may only be invoked after all links to ScalarMaps have been madevoidaddReferences(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 informationvoidaddReferences(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 informationvoidaddReferences(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 informationvoidaddReferences(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 informationvoidaddSlave(RemoteSlaveDisplay display)links a slave display to this displayvoidclearMaps()clear set of ScalarMap-s associated with this displayvoiddestroy()destroy this displayjava.util.VectorgetConstantMapVector()intgetDisplayAPI()java.lang.StringgetDisplayClassName()java.lang.StringgetDisplayRendererClassName()DisplaySyncgetDisplaySync()Returns a remotely-usable wrapper for the associated Display's synchronization object.GraphicsModeControlgetGraphicsModeControl()java.util.VectorgetMapVector()java.util.VectorgetReferenceLinks()RemoteDisplayMonitorgetRemoteDisplayMonitor()RemoteDisplaySyncgetRemoteDisplaySync()Returns a remotely-usable wrapper for the associated Display's synchronization object.booleanhasSlaves()whether there are any slave displays linked to this displayvoidremoveAllSlaves()removes all links between slave displays and this displayvoidremoveMap(ScalarMap map)remove a ScalarMap from this DisplayvoidremoveReference(ThingReference ref)remove link to a DataReference; because DataReference array input to adaptedAddReferences may be a mix of local and remote, we tolerate either herevoidremoveSlave(RemoteSlaveDisplay display)removes a link between a slave display and this displayvoidsendMessage(MessageEvent msg)Send a message to all MessageListeners.voidsendMouseEvent(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.RemoteObject
equals, getRef, hashCode, toString, toStub
-
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:
addSlavein interfaceDisplay- Parameters:
display- RemoteSlaveDisplay to link- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
removeSlave
public void removeSlave(RemoteSlaveDisplay display) throws VisADException, java.rmi.RemoteException
removes a link between a slave display and this display- Specified by:
removeSlavein interfaceDisplay- Parameters:
display- RemoteSlaveDisplay to remove- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
removeAllSlaves
public void removeAllSlaves() throws VisADException, java.rmi.RemoteExceptionremoves all links between slave displays and this display- Specified by:
removeAllSlavesin interfaceDisplay- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
hasSlaves
public boolean hasSlaves() throws VisADException, java.rmi.RemoteExceptionwhether there are any slave displays linked to this display- Specified by:
hasSlavesin interfaceDisplay- Returns:
- true if this display has any slave displays
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
sendMouseEvent
public void sendMouseEvent(java.awt.event.MouseEvent e) throws VisADException, java.rmi.RemoteExceptionsends a mouse event to this remote display's associated display- Specified by:
sendMouseEventin interfaceRemoteDisplay- Throws:
VisADExceptionjava.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:
addReferencein interfaceAction- Overrides:
addReferencein classRemoteActionImpl- Parameters:
ref- The ThingReference to which to create the link. Subsequent invocation ofthingChanged(ThingChangedEvent)causes invocation ofref.acknowledgeThingChanged(this). This method invokesref.addThingChangedListener(this, ...).- Throws:
RemoteVisADException- if the reference isn't aThingReferenceImpl.ReferenceException- if the reference has already been added.VisADException- if a VisAD failure occurs.java.rmi.RemoteException- if a Java RMI failure occurs.- See Also:
ThingChangedListener.thingChanged(ThingChangedEvent),ThingReference.addThingChangedListener(ThingChangedListener, long)
-
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:
addReferencein interfaceDisplay- Parameters:
ref- DataReference to link toconstant_maps- array of ConstantMaps applied to linked Data- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
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:
VisADExceptionjava.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:
addReferencesin interfaceDisplay- Parameters:
renderer- DataRenderer used to depict linked Dataref- DataReference to link toconstant_maps- array of ConstantMaps applied to this Data- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
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:
VisADExceptionjava.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:
VisADExceptionjava.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:
removeReferencein interfaceAction- Overrides:
removeReferencein classRemoteActionImpl- Parameters:
ref- The reference to be removed.- Throws:
RemoteVisADException- if the reference isn't aThingReferenceImpl.ReferenceException- if the reference isn't a part of this instance.VisADException- if a VisAD failure occurs.java.rmi.RemoteException- if a Java RMI failure occurs.
-
addMap
public void addMap(ScalarMap map) throws VisADException, java.rmi.RemoteException
add a ScalarMap to this Display- Specified by:
addMapin interfaceDisplay- Parameters:
map- ScalarMap to link- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
removeMap
public void removeMap(ScalarMap map) throws VisADException, java.rmi.RemoteException
remove a ScalarMap from this Display- Specified by:
removeMapin interfaceDisplay- Parameters:
map- ScalarMap to remove- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
clearMaps
public void clearMaps() throws VisADException, java.rmi.RemoteExceptionclear set of ScalarMap-s associated with this display- Specified by:
clearMapsin interfaceDisplay- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
destroy
public void destroy() throws VisADException, java.rmi.RemoteExceptiondestroy this display- Specified by:
destroyin interfaceDisplay- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDisplayClassName
public java.lang.String getDisplayClassName() throws java.rmi.RemoteException- Specified by:
getDisplayClassNamein interfaceRemoteDisplay- Throws:
java.rmi.RemoteException
-
getDisplayAPI
public int getDisplayAPI() throws java.rmi.RemoteException, VisADException- Specified by:
getDisplayAPIin interfaceRemoteDisplay- Throws:
java.rmi.RemoteExceptionVisADException
-
getDisplayRendererClassName
public java.lang.String getDisplayRendererClassName() throws java.rmi.RemoteException- Specified by:
getDisplayRendererClassNamein interfaceRemoteDisplay- Throws:
java.rmi.RemoteException
-
getMapVector
public java.util.Vector getMapVector() throws VisADException, java.rmi.RemoteException- Specified by:
getMapVectorin interfaceRemoteDisplay- Throws:
VisADExceptionjava.rmi.RemoteException
-
getConstantMapVector
public java.util.Vector getConstantMapVector() throws VisADException, java.rmi.RemoteException- Specified by:
getConstantMapVectorin interfaceDisplay- Specified by:
getConstantMapVectorin interfaceRemoteDisplay- Returns:
- Vector of linked ConstantMaps
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getGraphicsModeControl
public GraphicsModeControl getGraphicsModeControl() throws VisADException, java.rmi.RemoteException
- Specified by:
getGraphicsModeControlin interfaceRemoteDisplay- Throws:
VisADExceptionjava.rmi.RemoteException
-
getReferenceLinks
public java.util.Vector getReferenceLinks() throws VisADException, java.rmi.RemoteException- Specified by:
getReferenceLinksin interfaceRemoteDisplay- Throws:
VisADExceptionjava.rmi.RemoteException
-
getRemoteDisplayMonitor
public RemoteDisplayMonitor getRemoteDisplayMonitor() throws java.rmi.RemoteException
- Specified by:
getRemoteDisplayMonitorin interfaceRemoteDisplay- 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:
getDisplaySyncin interfaceRemoteDisplay- 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:
getRemoteDisplaySyncin interfaceRemoteDisplay- Throws:
java.rmi.RemoteException
-
sendMessage
public void sendMessage(MessageEvent msg) throws java.rmi.RemoteException
Send a message to all MessageListeners.- Specified by:
sendMessagein interfaceDisplay- Parameters:
msg- Message being sent.- Throws:
java.rmi.RemoteException- an RMI error occurred
-
-
DMelt 3.0 © DataMelt by jWork.ORG