Package xal.extension.scan.analysis
Class MainAnalysisController
java.lang.Object
xal.extension.scan.analysis.MainAnalysisController
AnalysisController is a class to handle analysis of the scan data.
- Author:
- shishlo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMainAnalysisController
(Object mainScanDocumentIn, JPanel parentAnalysisPanelIn, JPanel analysisControlPanelIn, JPanel customGraphPanelIn, ScanVariable scanVariableParameterIn, ScanVariable scanVariableIn, Vector<MeasuredValue> measuredValuesVIn, Vector<Boolean> measuredValuesShowStateVIn, FunctionGraphsJPanel graphScanIn, FunctionGraphsJPanel graphAnalysisIn) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createChildAnalysis
(DataAdaptor analysisConfig) Creates all custom analysis.void
dumpChildAnalysisConfig
(DataAdaptor analysisConfig) Sets the configurations of the analysis by passing config file to the children.protected BasicGraphData
Gets the choosenDraphData attribute of the MainAnalysisController objectprotected Object[]
Gets the choosenDraphDataAndPoint attribute of the MainAnalysisController objectCreates all custom analysis.Returns the main scan document reference as Object instance.static double
Returns the average phase shift value for graphsstatic double
Returns the phase shift value for graphstatic String
Returns the key string for graph properties specifying the x-coordinate phase shift.void
This method executed when analysis panel showing up.void
This method executed when analysis panel is about to be shut up.void
setFontsForAll
(Font fnt) Sets fonts for all GUI elements.void
setMessageTextField
(JTextField messageTextLocal) Sets local message text field.void
setScanPVandScanPVRBState
(boolean scanPVShowState, boolean scanPVRBShowState) Sets mask specifying if the data for scan PV scan read back PV should be shown.void
Updates data on the analysis graph panel.
-
Field Details
-
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 ParameterparentAnalysisPanelIn
- Description of the ParameteranalysisControlPanelIn
- Description of the ParametercustomGraphPanelIn
- Description of the ParameterscanVariableParameterIn
- Description of the ParameterscanVariableIn
- Description of the ParametermeasuredValuesVIn
- Description of the ParametermeasuredValuesShowStateVIn
- Description of the ParametergraphScanIn
- Description of the ParametergraphAnalysisIn
- Description of the Parameter
-
-
Method Details
-
getPhaseShiftKey
Returns the key string for graph properties specifying the x-coordinate phase shift.- Returns:
- The phase shift key string
-
setFontsForAll
Sets fonts for all GUI elements.- Parameters:
fnt
- The new fontsForAll value
-
setMessageTextField
Sets local message text field.- Parameters:
messageTextLocal
- The new messageTextField value
-
getMainScanDocument
Returns the main scan document reference as Object instance. It is used to define the resource location.- Returns:
- The mainScanDocument value
-
getDataReaderPanel
Creates all custom analysis.- Returns:
- The dataReaderPanel value
-
createChildAnalysis
Creates all custom analysis.- Parameters:
analysisConfig
- Description of the Parameter
-
dumpChildAnalysisConfig
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 valuescanPVRBShowState
- 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
Returns the average phase shift value for graphs- Parameters:
gdV
- The vector with graph data objects- Returns:
- The phase shift value
-
getPhaseShift
Returns the phase shift value for graph- Parameters:
gd
- The graph data objects- Returns:
- The phase shift value
-
getChoosenDraphData
Gets the choosenDraphData attribute of the MainAnalysisController object- Returns:
- The choosenDraphData value
-
getChoosenDraphDataAndPoint
Gets the choosenDraphDataAndPoint attribute of the MainAnalysisController object- Returns:
- The choosenDraphDataAndPoint value
-