Class MainAnalysisController

java.lang.Object
xal.extension.scan.analysis.MainAnalysisController

public class MainAnalysisController extends Object
AnalysisController is a class to handle analysis of the scan data.
Author:
shishlo
  • Field Details

    • dataReaderPanel

      protected JPanel dataReaderPanel
      Description of the Field
  • Constructor Details

    • MainAnalysisController

      public MainAnalysisController(Object mainScanDocumentIn, JPanel parentAnalysisPanelIn, JPanel analysisControlPanelIn, JPanel customGraphPanelIn, ScanVariable scanVariableParameterIn, ScanVariable scanVariableIn, Vector<MeasuredValue> measuredValuesVIn, Vector<Boolean> measuredValuesShowStateVIn, FunctionGraphsJPanel graphScanIn, FunctionGraphsJPanel graphAnalysisIn)
      Constructor. The first parameter is the parent panel. It is used to refresh the whole analysis panel. The second is used to place control elements. The third is used to place custom graph panels and general buttons panel. The 4-th is the scan variable. The 5-th is the vector with MeasuredValues instances. The 6-th includes masks specifying should be shown graphs from MeasuredValues or not. The 7-th is the graph panel to show graph data.
      Parameters:
      mainScanDocumentIn - Description of the Parameter
      parentAnalysisPanelIn - Description of the Parameter
      analysisControlPanelIn - Description of the Parameter
      customGraphPanelIn - Description of the Parameter
      scanVariableParameterIn - Description of the Parameter
      scanVariableIn - Description of the Parameter
      measuredValuesVIn - Description of the Parameter
      measuredValuesShowStateVIn - Description of the Parameter
      graphScanIn - Description of the Parameter
      graphAnalysisIn - Description of the Parameter
  • Method Details

    • getPhaseShiftKey

      public static String getPhaseShiftKey()
      Returns the key string for graph properties specifying the x-coordinate phase shift.
      Returns:
      The phase shift key string
    • setFontsForAll

      public void setFontsForAll(Font fnt)
      Sets fonts for all GUI elements.
      Parameters:
      fnt - The new fontsForAll value
    • setMessageTextField

      public void setMessageTextField(JTextField messageTextLocal)
      Sets local message text field.
      Parameters:
      messageTextLocal - The new messageTextField value
    • getMainScanDocument

      public Object getMainScanDocument()
      Returns the main scan document reference as Object instance. It is used to define the resource location.
      Returns:
      The mainScanDocument value
    • getDataReaderPanel

      public JPanel getDataReaderPanel()
      Creates all custom analysis.
      Returns:
      The dataReaderPanel value
    • createChildAnalysis

      public void createChildAnalysis(DataAdaptor analysisConfig)
      Creates all custom analysis.
      Parameters:
      analysisConfig - Description of the Parameter
    • dumpChildAnalysisConfig

      public void dumpChildAnalysisConfig(DataAdaptor analysisConfig)
      Sets the configurations of the analysis by passing config file to the children.
      Parameters:
      analysisConfig - Description of the Parameter
    • setScanPVandScanPVRBState

      public void setScanPVandScanPVRBState(boolean scanPVShowState, boolean scanPVRBShowState)
      Sets mask specifying if the data for scan PV scan read back PV should be shown.
      Parameters:
      scanPVShowState - The new scanPVandScanPV_RB_State value
      scanPVRBShowState - The new scanPVandScanPV_RB_State value
    • updateDataSetOnGraphPanel

      public void updateDataSetOnGraphPanel()
      Updates data on the analysis graph panel. This method should be called outside of the analysis controller.
    • isGoingShowUp

      public void isGoingShowUp()
      This method executed when analysis panel showing up.
    • isGoingShutUp

      public void isGoingShutUp()
      This method executed when analysis panel is about to be shut up.
    • getPhaseShift

      public static double getPhaseShift(Vector<BasicGraphData> gdV)
      Returns the average phase shift value for graphs
      Parameters:
      gdV - The vector with graph data objects
      Returns:
      The phase shift value
    • getPhaseShift

      public static double getPhaseShift(BasicGraphData gd)
      Returns the phase shift value for graph
      Parameters:
      gd - The graph data objects
      Returns:
      The phase shift value
    • getChoosenDraphData

      protected BasicGraphData getChoosenDraphData()
      Gets the choosenDraphData attribute of the MainAnalysisController object
      Returns:
      The choosenDraphData value
    • getChoosenDraphDataAndPoint

      protected Object[] getChoosenDraphDataAndPoint()
      Gets the choosenDraphDataAndPoint attribute of the MainAnalysisController object
      Returns:
      The choosenDraphDataAndPoint value