gov.sns.tools.scan.SecondEdition.analysis
Class MainAnalysisController

java.lang.Object
  |
  +--gov.sns.tools.scan.SecondEdition.analysis.MainAnalysisController

public class MainAnalysisController
extends java.lang.Object

AnalysisController is a class to handle analysis of the scan data.


Field Summary
protected  javax.swing.JPanel dataReaderPanel
           
 
Constructor Summary
MainAnalysisController(java.lang.Object mainScanDocument_In, javax.swing.JPanel parentAnalysisPanel_In, javax.swing.JPanel analysisControlPanel_In, javax.swing.JPanel customGraphPanel_In, ScanVariable scanVariableParameter_In, ScanVariable scanVariable_In, java.util.Vector measuredValuesV_In, java.util.Vector measuredValuesShowStateV_In, FunctionGraphsJPanel graphScan_In, FunctionGraphsJPanel graphAnalysis_In)
          Constructor.
 
Method Summary
 void createChildAnalysis(XmlDataAdaptor analysisConfig)
          Creates all custom analysis.
 void dumpChildAnalysisConfig(XmlDataAdaptor analysisConfig)
          Sets the configurations of the analysis by passing config file to the children.
protected  BasicGraphData getChoosenDraphData()
           
protected  java.lang.Object[] getChoosenDraphDataAndPoint()
           
 javax.swing.JPanel getDataReaderPanel()
          Creates all custom analysis.
 java.lang.Object getMainScanDocument()
          Returns the main scan document reference as Object instance.
 void isGoingShowUp()
          This method executed when analysis panel showing up.
 void isGoingShutUp()
          This method executed when analysis panel is about to be shut up.
 void setFontsForAll(java.awt.Font fnt)
          Sets fonts for all GUI elements.
 void setMessageTextField(javax.swing.JTextField messageTextLocal)
          Sets local message text field.
 void setScanPVandScanPV_RB_State(boolean scanPV_ShowState, boolean scanPV_RB_ShowState)
          Sets mask specifying if the data for scan PV scan read back PV should be shown.
 void updateDataSetOnGraphPanel()
          Updates data on the analysis graph panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataReaderPanel

protected javax.swing.JPanel dataReaderPanel
Constructor Detail

MainAnalysisController

public MainAnalysisController(java.lang.Object mainScanDocument_In,
                              javax.swing.JPanel parentAnalysisPanel_In,
                              javax.swing.JPanel analysisControlPanel_In,
                              javax.swing.JPanel customGraphPanel_In,
                              ScanVariable scanVariableParameter_In,
                              ScanVariable scanVariable_In,
                              java.util.Vector measuredValuesV_In,
                              java.util.Vector measuredValuesShowStateV_In,
                              FunctionGraphsJPanel graphScan_In,
                              FunctionGraphsJPanel graphAnalysis_In)
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.

Method Detail

setFontsForAll

public void setFontsForAll(java.awt.Font fnt)
Sets fonts for all GUI elements.


setMessageTextField

public void setMessageTextField(javax.swing.JTextField messageTextLocal)
Sets local message text field.


getMainScanDocument

public java.lang.Object getMainScanDocument()
Returns the main scan document reference as Object instance. It is used to define the resource location.


getDataReaderPanel

public javax.swing.JPanel getDataReaderPanel()
Creates all custom analysis.


createChildAnalysis

public void createChildAnalysis(XmlDataAdaptor analysisConfig)
Creates all custom analysis.


dumpChildAnalysisConfig

public void dumpChildAnalysisConfig(XmlDataAdaptor analysisConfig)
Sets the configurations of the analysis by passing config file to the children.


setScanPVandScanPV_RB_State

public void setScanPVandScanPV_RB_State(boolean scanPV_ShowState,
                                        boolean scanPV_RB_ShowState)
Sets mask specifying if the data for scan PV scan read back PV should be shown.


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.


getChoosenDraphData

protected BasicGraphData getChoosenDraphData()

getChoosenDraphDataAndPoint

protected java.lang.Object[] getChoosenDraphDataAndPoint()