Package uk.ac.diamond.scisoft.analysis
Interface PlotService
- All Known Subinterfaces:
IPlotRMI,PlotServer,PlotServerDevice
- All Known Implementing Classes:
AbstractPlotServer,GDASimplePlotServer,PlotServerBase,RMIPlotServer,SimplePlotServer
public interface PlotService
Plot service provides a means to communicate with plotting clients
-
Method Summary
Modifier and TypeMethodDescriptionThis method should return the plotData which is currently connected to a particular GUIString[]Return a list of all the names known to the plot server.getGuiState(String guiName) This method allows for interested parties to get relevant GUI information about a particular GUI panelbooleanvoidThis method should set the data that is to be plotted on the client of a specific namevoidupdateData(String guiName) This method should report to all observers that there is some data available on the server for plotting.voidThis method should be called whenever some GUI information changes, this will then set the GUI's bean which contains all the state information, so that it can be obtained from other GUIs and interested parties.
-
Method Details
-
updateGui
This method should be called whenever some GUI information changes, this will then set the GUI's bean which contains all the state information, so that it can be obtained from other GUIs and interested parties. This also fires off a message to all observers to let them know there has been a change of the GUI data, and this information is also sent with the update- Parameters:
guiName- The name of the GUI which is being updatedguiData- The data which specifies that GUI panel- Throws:
Exception- If there is a problem with communication with the object.
-
setData
This method should set the data that is to be plotted on the client of a specific name- Parameters:
guiName- The name of the GUI panel to plot toplotData- The data which requires plotting (can be null to reset server's cached data)- Throws:
Exception- If there is a problem with communication with the object.
-
updateData
This method should report to all observers that there is some data available on the server for plotting. It just sends out the name of the panel for which additional data is available, and it is up to the specific observers as to whether they try to retrieve that data or not using the getPlotData method- Parameters:
guiName-- Throws:
Exception
-
getGuiState
This method allows for interested parties to get relevant GUI information about a particular GUI panel- Parameters:
guiName- The name of the GUI panel from which the data is to be retrieved- Returns:
- The data which specifies the requested GUI panels attributes
- Throws:
Exception- If there is a problem with communication with the object.
-
isServerLocal
- Returns:
- true if plot server is local (i.e. sees the same file system)
- Throws:
Exception- If there is a problem with communication with the object.
-
getGuiNames
Return a list of all the names known to the plot server. That is any guiName that has a data or gui bean- Returns:
- the list of names
- Throws:
Exception- If there is a problem with communication with the object.
-
getData
This method should return the plotData which is currently connected to a particular GUI- Parameters:
guiName- the name of the GUI which is requesting the data, or the GUI name of the data which a third party is trying to look at- Returns:
- The GUI data for the named GUI
- Throws:
Exception- If there is a problem with communication with the object.
-