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

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

public class ReportGenWindow
extends java.lang.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  javax.swing.JCheckBox[] allMeasuresBoxes
           
private  javax.swing.JCheckBox checkBoxClusterReport
           
private  javax.swing.JCheckBox checkBoxDistortion
           
private  javax.swing.JCheckBox checkBoxFlowBorderline
           
private  javax.swing.JCheckBox checkBoxMetroMap
           
private  javax.swing.JCheckBox checkBoxRegionalReport
           
private  javax.swing.JCheckBox checkBoxScientificDescription
           
private  javax.swing.JCheckBox checkBoxSDH
           
private  javax.swing.JCheckBox checkBoxSemanticInterpretation
           
private  javax.swing.JCheckBox checkBoxTopographicProduct
           
private  javax.swing.JCheckBox checkBoxTrustworthiness
           
private  javax.swing.JFileChooser dirChooser
           
private  EditableReportProperties EP
           
private  javax.swing.JFileChooser fileChooser
           
private  java.util.Vector<InputVectorSelectorPane> inputElements
           
private  javax.swing.JScrollPane inputElementSelectionScroller
           
private  javax.swing.JPanel inputElementSelectionScrollerContent
           
private  javax.swing.JSpinner jSpinnerClassCompactnessMAX
           
private  javax.swing.JSpinner jSpinnerClassCompactnessMIN
           
private  javax.swing.JSpinner jSpinnerMetroMap
           
private  javax.swing.JSpinner jSpinnerSDH
           
private  javax.swing.JSpinner jSpinnerTopographicProduct
           
private  javax.swing.JSpinner jSpinnerTrustworthiness
           
private  javax.swing.JTextField Map_location
           
private  javax.swing.JCheckBox[] mapMeasureBoxes
           
static java.lang.String[] mapMeasures
           
private static java.lang.String OUTPUT_FILE
           
private  java.util.HashMap<java.lang.String,java.lang.String> paths
           
private static java.lang.String PROPERTIES_FILE
           
private  ReportGenerator reportGenerator
           
private  CommonSOMViewerStateData state
           
private  java.util.Vector<RunResultSpecifierPane> testrunResults
           
private  javax.swing.JScrollPane testrunScroller
           
private  javax.swing.JPanel testrunScrollerContent
           
private  javax.swing.JTextField textClassFileLocation
           
private  javax.swing.JTextField textInputVectorsLocation
           
private  javax.swing.JTextField textOutputLocation
           
private  javax.swing.JTextField textPropertiesLocation
           
private  javax.swing.JTextField textTemplateVectorsLocation
           
private  javax.swing.JCheckBox[] unitAndMapMeasuresBoxes
           
static java.lang.String[] unitAndMmapMeasures
           
 
Constructor Summary
ReportGenWindow(boolean standalone, ReportGenerator reportGen, CommonSOMViewerStateData state, java.lang.String outputPath, java.lang.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  javax.swing.JCheckBox[] createCheckBoxes(java.lang.String[] m)
           
 void generateReport(int type)
           
 java.lang.String getClassInfoPath()
           
 java.lang.String getDataWinnerMappingPath()
           
private  javax.swing.JFileChooser getDirectoryChooser(java.lang.String path)
           
private  javax.swing.JPanel getEditableReportAtributesPane()
          Return the panel holding the controls to change the report options
private  javax.swing.JFileChooser getFileChooser(java.lang.String path)
           
 java.lang.String getInputVectorPath()
           
private  javax.swing.JPanel getJContentPane()
          Create the main panel
 java.lang.String getMapPath()
           
 java.lang.String getOutputPath()
           
 java.lang.String getPropertiesPath()
           
 java.util.ArrayList<java.lang.String> getSelectedQualityMeasures()
          Returns a list containing the selected quality measures
 java.lang.String getTemplatePath()
           
private  TestRunResultCollection getTestrunResultCollection(DatasetInformation dataInfo, int type)
          Makes a report on the default Map.
 java.lang.String getUnitPath()
           
 java.lang.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 java.lang.String PROPERTIES_FILE
See Also:
Constant Field Values

OUTPUT_FILE

private static final java.lang.String OUTPUT_FILE
See Also:
Constant Field Values

unitAndMmapMeasures

public static final java.lang.String[] unitAndMmapMeasures

mapMeasures

public static final java.lang.String[] mapMeasures

reportGenerator

private ReportGenerator reportGenerator

inputElements

private java.util.Vector<InputVectorSelectorPane> inputElements

testrunResults

private java.util.Vector<RunResultSpecifierPane> testrunResults

paths

private java.util.HashMap<java.lang.String,java.lang.String> paths

state

private CommonSOMViewerStateData state

textInputVectorsLocation

private javax.swing.JTextField textInputVectorsLocation

Map_location

private javax.swing.JTextField Map_location

textTemplateVectorsLocation

private javax.swing.JTextField textTemplateVectorsLocation

textOutputLocation

private javax.swing.JTextField textOutputLocation

textClassFileLocation

private javax.swing.JTextField textClassFileLocation

textPropertiesLocation

private javax.swing.JTextField textPropertiesLocation

checkBoxClusterReport

private javax.swing.JCheckBox checkBoxClusterReport

checkBoxRegionalReport

private javax.swing.JCheckBox checkBoxRegionalReport

checkBoxScientificDescription

private javax.swing.JCheckBox checkBoxScientificDescription

checkBoxSemanticInterpretation

private javax.swing.JCheckBox checkBoxSemanticInterpretation

checkBoxDistortion

private javax.swing.JCheckBox checkBoxDistortion

checkBoxFlowBorderline

private javax.swing.JCheckBox checkBoxFlowBorderline

checkBoxMetroMap

private javax.swing.JCheckBox checkBoxMetroMap

checkBoxTrustworthiness

private javax.swing.JCheckBox checkBoxTrustworthiness

checkBoxTopographicProduct

private javax.swing.JCheckBox checkBoxTopographicProduct

checkBoxSDH

private javax.swing.JCheckBox checkBoxSDH

jSpinnerSDH

private javax.swing.JSpinner jSpinnerSDH

jSpinnerTopographicProduct

private javax.swing.JSpinner jSpinnerTopographicProduct

jSpinnerTrustworthiness

private javax.swing.JSpinner jSpinnerTrustworthiness

jSpinnerMetroMap

private javax.swing.JSpinner jSpinnerMetroMap

jSpinnerClassCompactnessMAX

private javax.swing.JSpinner jSpinnerClassCompactnessMAX

jSpinnerClassCompactnessMIN

private javax.swing.JSpinner jSpinnerClassCompactnessMIN

mapMeasureBoxes

private javax.swing.JCheckBox[] mapMeasureBoxes

unitAndMapMeasuresBoxes

private javax.swing.JCheckBox[] unitAndMapMeasuresBoxes

allMeasuresBoxes

private javax.swing.JCheckBox[] allMeasuresBoxes

inputElementSelectionScroller

private javax.swing.JScrollPane inputElementSelectionScroller

testrunScroller

private javax.swing.JScrollPane testrunScroller

inputElementSelectionScrollerContent

private javax.swing.JPanel inputElementSelectionScrollerContent

testrunScrollerContent

private javax.swing.JPanel testrunScrollerContent

fileChooser

private javax.swing.JFileChooser fileChooser

dirChooser

private javax.swing.JFileChooser dirChooser

EP

private EditableReportProperties EP
Constructor Detail

ReportGenWindow

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

init

private void init(boolean standalone,
                  ReportGenerator reportGen)

getMapPath

public java.lang.String getMapPath()

getUnitPath

public java.lang.String getUnitPath()

getWeightPath

public java.lang.String getWeightPath()

getDataWinnerMappingPath

public java.lang.String getDataWinnerMappingPath()

getInputVectorPath

public java.lang.String getInputVectorPath()

getClassInfoPath

public java.lang.String getClassInfoPath()

getTemplatePath

public java.lang.String getTemplatePath()

getPropertiesPath

public java.lang.String getPropertiesPath()

getOutputPath

public java.lang.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 javax.swing.JPanel getJContentPane()
Create the main panel


getEditableReportAtributesPane

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


createCheckBoxes

private javax.swing.JCheckBox[] createCheckBoxes(java.lang.String[] m)

selectQualityBoxes

private void selectQualityBoxes(boolean selected)

getFileChooser

private javax.swing.JFileChooser getFileChooser(java.lang.String path)

getDirectoryChooser

private javax.swing.JFileChooser getDirectoryChooser(java.lang.String path)

readEditableProperties

private EditableReportProperties readEditableProperties()
Reads the options


getSelectedQualityMeasures

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