|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject visad.RemoteActionImpl visad.RemoteDisplayImpl
public class RemoteDisplayImpl
RemoteDisplayImpl is the VisAD class for remote access to Display-s.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
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 |
Vector |
getConstantMapVector()
|
int |
getDisplayAPI()
|
String |
getDisplayClassName()
|
String |
getDisplayRendererClassName()
|
DisplaySync |
getDisplaySync()
Returns a remotely-usable wrapper for the associated Display's synchronization object. |
GraphicsModeControl |
getGraphicsModeControl()
|
Vector |
getMapVector()
|
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 |
removeMap(ScalarMap map)
remove a ScalarMap from 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(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 |
---|
public RemoteDisplayImpl(DisplayImpl d) throws RemoteException
RemoteException
Method Detail |
---|
public void addSlave(RemoteSlaveDisplay display) throws VisADException, RemoteException
addSlave
in interface Display
display
- RemoteSlaveDisplay to link
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void removeSlave(RemoteSlaveDisplay display) throws VisADException, RemoteException
removeSlave
in interface Display
display
- RemoteSlaveDisplay to remove
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void removeAllSlaves() throws VisADException, RemoteException
removeAllSlaves
in interface Display
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic boolean hasSlaves() throws VisADException, RemoteException
hasSlaves
in interface Display
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void sendMouseEvent(MouseEvent e) throws VisADException, RemoteException
sendMouseEvent
in interface RemoteDisplay
VisADException
RemoteException
public void addReference(ThingReference ref) throws VisADException, RemoteException
addReference
in interface Action
addReference
in class RemoteActionImpl
ref
- The ThingReference to which to create
the link. Subsequent invocation of
thingChanged(ThingChangedEvent)
causes invocation of
ref.acknowledgeThingChanged(this)
. This method invokes
ref.addThingChangedListener(this, ...)
.
RemoteVisADException
- if the reference isn't a ThingReferenceImpl
.
ReferenceException
- if the reference has already been added.
VisADException
- if a VisAD failure occurs.
RemoteException
- if a Java RMI failure occurs.ThingChangedListener.thingChanged(ThingChangedEvent)
,
ThingReference.addThingChangedListener(ThingChangedListener, long)
public void addReference(DataReference ref, ConstantMap[] constant_maps) throws VisADException, RemoteException
addReference
in interface Display
ref
- DataReference to link toconstant_maps
- array of ConstantMaps applied to linked Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void addReferences(DataRenderer renderer, DataReference ref) throws VisADException, RemoteException
VisADException
RemoteException
public void addReferences(DataRenderer renderer, DataReference ref, ConstantMap[] constant_maps) throws VisADException, RemoteException
addReferences
in interface Display
renderer
- DataRenderer used to depict linked Dataref
- DataReference to link toconstant_maps
- array of ConstantMaps applied to this Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void addReferences(DataRenderer renderer, DataReference[] refs) throws VisADException, RemoteException
VisADException
RemoteException
public void addReferences(DataRenderer renderer, DataReference[] refs, ConstantMap[][] constant_maps) throws VisADException, RemoteException
VisADException
RemoteException
public void removeReference(ThingReference ref) throws VisADException, RemoteException
removeReference
in interface Action
removeReference
in class RemoteActionImpl
ref
- The reference to be removed.
RemoteVisADException
- if the reference isn't a ThingReferenceImpl
.
ReferenceException
- if the reference isn't a part of this
instance.
VisADException
- if a VisAD failure occurs.
RemoteException
- if a Java RMI failure occurs.public void addMap(ScalarMap map) throws VisADException, RemoteException
addMap
in interface Display
map
- ScalarMap to link
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void removeMap(ScalarMap map) throws VisADException, RemoteException
removeMap
in interface Display
map
- ScalarMap to remove
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void clearMaps() throws VisADException, RemoteException
clearMaps
in interface Display
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void destroy() throws VisADException, RemoteException
destroy
in interface Display
VisADException
RemoteException
public String getDisplayClassName() throws RemoteException
getDisplayClassName
in interface RemoteDisplay
RemoteException
public int getDisplayAPI() throws RemoteException, VisADException
getDisplayAPI
in interface RemoteDisplay
RemoteException
VisADException
public String getDisplayRendererClassName() throws RemoteException
getDisplayRendererClassName
in interface RemoteDisplay
RemoteException
public Vector getMapVector() throws VisADException, RemoteException
getMapVector
in interface RemoteDisplay
VisADException
RemoteException
public Vector getConstantMapVector() throws VisADException, RemoteException
getConstantMapVector
in interface Display
getConstantMapVector
in interface RemoteDisplay
VisADException
RemoteException
public GraphicsModeControl getGraphicsModeControl() throws VisADException, RemoteException
getGraphicsModeControl
in interface RemoteDisplay
VisADException
RemoteException
public Vector getReferenceLinks() throws VisADException, RemoteException
getReferenceLinks
in interface RemoteDisplay
VisADException
RemoteException
public RemoteDisplayMonitor getRemoteDisplayMonitor() throws RemoteException
getRemoteDisplayMonitor
in interface RemoteDisplay
RemoteException
public DisplaySync getDisplaySync() throws RemoteException
getDisplaySync
in interface RemoteDisplay
RemoteException
public RemoteDisplaySync getRemoteDisplaySync() throws RemoteException
getRemoteDisplaySync
in interface RemoteDisplay
RemoteException
public void sendMessage(MessageEvent msg) throws RemoteException
sendMessage
in interface Display
msg
- Message being sent.
RemoteException
- an RMI error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |