at.tuwien.ifs.somtoolbox.reportgenerator.gui
Class ReportGenWindow

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.reportgenerator.gui.ReportGenWindow

public class ReportGenWindow
extends Object

Version:
$Id: ReportGenWindow.java 3585 2010-05-21 10:33:21Z mayer $
Author:
Sebastian Skritek (0226286, Sebastian.Skritek@gmx.at), Martin Waitzbauer (0226025), Rudolf Mayer

Field Summary
private  JCheckBox[] allMeasuresBoxes
           
private  JCheckBox checkBoxClusterReport
           
private  JCheckBox checkBoxDistortion
           
private  JCheckBox checkBoxFlowBorderline
           
private  JCheckBox checkBoxMetroMap
           
private  JCheckBox checkBoxRegionalReport
           
private  JCheckBox checkBoxScientificDescription
           
private  JCheckBox checkBoxSDH
           
private  JCheckBox checkBoxSemanticInterpretation
           
private  JCheckBox checkBoxTopographicProduct
           
private  JCheckBox checkBoxTrustworthiness
           
private  JFileChooser dirChooser
           
private  EditableReportProperties EP
           
private  JFileChooser fileChooser
           
private  Vector<InputVectorSelectorPane> inputElements
           
private  JScrollPane inputElementSelectionScroller
           
private  JPanel inputElementSelectionScrollerContent
           
private  JSpinner jSpinnerClassCompactnessMAX
           
private  JSpinner jSpinnerClassCompactnessMIN
           
private  JSpinner jSpinnerMetroMap
           
private  JSpinner jSpinnerSDH
           
private  JSpinner jSpinnerTopographicProduct
           
private  JSpinner jSpinnerTrustworthiness
           
private  JTextField Map_location
           
private  JCheckBox[] mapMeasureBoxes
           
static String[] mapMeasures
           
private static String OUTPUT_FILE
           
private  HashMap<String,String> paths
           
private static String PROPERTIES_FILE
           
private  ReportGenerator reportGenerator
           
private  CommonSOMViewerStateData state
           
private  Vector<RunResultSpecifierPane> testrunResults
           
private  JScrollPane testrunScroller
           
private  JPanel testrunScrollerContent
           
private  JTextField textClassFileLocation
           
private  JTextField textInputVectorsLocation
           
private  JTextField textOutputLocation
           
private  JTextField textPropertiesLocation
           
private  JTextField textTemplateVectorsLocation
           
private  JCheckBox[] unitAndMapMeasuresBoxes
           
static String[] unitAndMmapMeasures
           
 
Constructor Summary
ReportGenWindow(boolean standalone, ReportGenerator reportGen, CommonSOMViewerStateData state, String outputPath, String propertiesFile)
           
 
Method Summary
private  void addTestrunPane()
          inserts a new panel for specifying information about a testrun to the testrunScrollerContent pane
private  void clearInputElementSelectionPane()
          removes all the panes for marking input elements as interesting
private  JCheckBox[] createCheckBoxes(String[] m)
           
 void generateReport(int type)
           
 String getClassInfoPath()
           
 String getDataWinnerMappingPath()
           
private  JFileChooser getDirectoryChooser(String path)
           
private  JPanel getEditableReportAtributesPane()
          Return the panel holding the controls to change the report options
private  JFileChooser getFileChooser(String path)
           
 String getInputVectorPath()
           
private  JPanel getJContentPane()
          Create the main panel
 String getMapPath()
           
 String getOutputPath()
           
 String getPropertiesPath()
           
 ArrayList<String> getSelectedQualityMeasures()
          Returns a list containing the selected quality measures
 String getTemplatePath()
           
private  TestRunResultCollection getTestrunResultCollection(DatasetInformation dataInfo, int type)
          Makes a report on the default Map.
 String getUnitPath()
           
 String getWeightPath()
           
private  void init(boolean standalone, ReportGenerator reportGen)
           
 boolean loadInputVectors()
          loads the specified Input Vector file into some data structure (hopefully one that already exists) and prints a list of the vectors in the selection list for marking inputs that shall be observed
private  EditableReportProperties readEditableProperties()
          Reads the options
 void removeTestrun(int id)
          removes the specified testrun the testrun identified with this id (that is the one at position id (starting with 1st position == 0)) is removed from the list of testruns as well as from the panel.
private  void selectQualityBoxes(boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_FILE

private static final String PROPERTIES_FILE
See Also:
Constant Field Values

OUTPUT_FILE

private static final String OUTPUT_FILE
See Also:
Constant Field Values

unitAndMmapMeasures

public static final String[] unitAndMmapMeasures

mapMeasures

public static final String[] mapMeasures

reportGenerator

private ReportGenerator reportGenerator

inputElements

private Vector<InputVectorSelectorPane> inputElements

testrunResults

private Vector<RunResultSpecifierPane> testrunResults

paths

private HashMap<String,String> paths

state

private CommonSOMViewerStateData state

textInputVectorsLocation

private JTextField textInputVectorsLocation

Map_location

private JTextField Map_location

textTemplateVectorsLocation

private JTextField textTemplateVectorsLocation

textOutputLocation

private JTextField textOutputLocation

textClassFileLocation

private JTextField textClassFileLocation

textPropertiesLocation

private JTextField textPropertiesLocation

checkBoxClusterReport

private JCheckBox checkBoxClusterReport

checkBoxRegionalReport

private JCheckBox checkBoxRegionalReport

checkBoxScientificDescription

private JCheckBox checkBoxScientificDescription

checkBoxSemanticInterpretation

private JCheckBox checkBoxSemanticInterpretation

checkBoxDistortion

private JCheckBox checkBoxDistortion

checkBoxFlowBorderline

private JCheckBox checkBoxFlowBorderline

checkBoxMetroMap

private JCheckBox checkBoxMetroMap

checkBoxTrustworthiness

private JCheckBox checkBoxTrustworthiness

checkBoxTopographicProduct

private JCheckBox checkBoxTopographicProduct

checkBoxSDH

private JCheckBox checkBoxSDH

jSpinnerSDH

private JSpinner jSpinnerSDH

jSpinnerTopographicProduct

private JSpinner jSpinnerTopographicProduct

jSpinnerTrustworthiness

private JSpinner jSpinnerTrustworthiness

jSpinnerMetroMap

private JSpinner jSpinnerMetroMap

jSpinnerClassCompactnessMAX

private JSpinner jSpinnerClassCompactnessMAX

jSpinnerClassCompactnessMIN

private JSpinner jSpinnerClassCompactnessMIN

mapMeasureBoxes

private JCheckBox[] mapMeasureBoxes

unitAndMapMeasuresBoxes

private JCheckBox[] unitAndMapMeasuresBoxes

allMeasuresBoxes

private JCheckBox[] allMeasuresBoxes

inputElementSelectionScroller

private JScrollPane inputElementSelectionScroller

testrunScroller

private JScrollPane testrunScroller

inputElementSelectionScrollerContent

private JPanel inputElementSelectionScrollerContent

testrunScrollerContent

private JPanel testrunScrollerContent

fileChooser

private JFileChooser fileChooser

dirChooser

private JFileChooser dirChooser

EP

private EditableReportProperties EP
Constructor Detail

ReportGenWindow

public ReportGenWindow(boolean standalone,
                       ReportGenerator reportGen,
                       CommonSOMViewerStateData state,
                       String outputPath,
                       String propertiesFile)
Method Detail

init

private void init(boolean standalone,
                  ReportGenerator reportGen)

getMapPath

public String getMapPath()

getUnitPath

public String getUnitPath()

getWeightPath

public String getWeightPath()

getDataWinnerMappingPath

public String getDataWinnerMappingPath()

getInputVectorPath

public String getInputVectorPath()

getClassInfoPath

public String getClassInfoPath()

getTemplatePath

public String getTemplatePath()

getPropertiesPath

public String getPropertiesPath()

getOutputPath

public String getOutputPath()

loadInputVectors

public boolean loadInputVectors()
loads the specified Input Vector file into some data structure (hopefully one that already exists) and prints a list of the vectors in the selection list for marking inputs that shall be observed

Returns:
true if loading was successful, false otherwise

generateReport

public void generateReport(int type)

removeTestrun

public void removeTestrun(int id)
removes the specified testrun the testrun identified with this id (that is the one at position id (starting with 1st position == 0)) is removed from the list of testruns as well as from the panel.

Parameters:
id - the index of the testrun to remove

getTestrunResultCollection

private TestRunResultCollection getTestrunResultCollection(DatasetInformation dataInfo,
                                                           int type)
Makes a report on the default Map.


addTestrunPane

private void addTestrunPane()
inserts a new panel for specifying information about a testrun to the testrunScrollerContent pane


clearInputElementSelectionPane

private void clearInputElementSelectionPane()
removes all the panes for marking input elements as interesting


getJContentPane

private JPanel getJContentPane()
Create the main panel


getEditableReportAtributesPane

private JPanel getEditableReportAtributesPane()
Return the panel holding the controls to change the report options


createCheckBoxes

private JCheckBox[] createCheckBoxes(String[] m)

selectQualityBoxes

private void selectQualityBoxes(boolean selected)

getFileChooser

private JFileChooser getFileChooser(String path)

getDirectoryChooser

private JFileChooser getDirectoryChooser(String path)

readEditableProperties

private EditableReportProperties readEditableProperties()
Reads the options


getSelectedQualityMeasures

public ArrayList<String> getSelectedQualityMeasures()
Returns a list containing the selected quality measures