Package uk.ac.diamond.scisoft.analysis
Class PlotServiceProvider
java.lang.Object
uk.ac.diamond.scisoft.analysis.PlotServiceProvider
Use the PlotServiceProvider to obtain a handle to the PlotServer when the primary purpose is to send data to the plot
server, such as when accessed from Jython over RMI or via any of the plotting methods in
SDAPlotter
If you want the "real" PlotServer, so you can add IObservers to it, use PlotServerProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlotServicestatic PlotServicegetPlotService(String hostname) Get a PlotService that can be used to do Plotting.static voidsetPlotService(PlotService service) Override automatically calculated plot service with a known good plot service, or tonullto refetch plot server (useful after changing the port number).
-
Constructor Details
-
PlotServiceProvider
public PlotServiceProvider()
-
-
Method Details
-
getPlotService
-
getPlotService
Get a PlotService that can be used to do Plotting. It first tries to get the existing PlotServer. If it fails it will try to get the Java RMI plotServiceThe returned PlotService should not be held, but refetched each time it is used to allow the port to be changed.
- Parameters:
hostname- host to connect to, ornullfor local host
-
setPlotService
Override automatically calculated plot service with a known good plot service, or tonullto refetch plot server (useful after changing the port number).- Parameters:
service-
-