Class PlotServiceProvider

java.lang.Object
uk.ac.diamond.scisoft.analysis.PlotServiceProvider

public class PlotServiceProvider extends Object
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 Details

    • PlotServiceProvider

      public PlotServiceProvider()
  • Method Details

    • getPlotService

      public static PlotService getPlotService()
    • getPlotService

      public static PlotService getPlotService(String hostname)
      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 plotService

      The 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, or null for local host
    • setPlotService

      public static void setPlotService(PlotService service)
      Override automatically calculated plot service with a known good plot service, or to null to refetch plot server (useful after changing the port number).
      Parameters:
      service -