edu.northwestern.at.wordhoard.swing.calculator.analysis
Class WordFrequencies

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase
      extended by edu.northwestern.at.wordhoard.swing.calculator.analysis.WordFrequencies
All Implemented Interfaces:
AnalysisRunner

public class WordFrequencies
extends FrequencyAnalysisRunnerBase
implements AnalysisRunner

Displays word frequencies for selected works.


Field Summary
protected static int MAJORWORDCLASSCOLUMN
          Column containing major word classes in output table.
protected static int WORDCLASSCOLUMN
          Column containing word classes in output table.
 
Fields inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase
adjustChiSquareForMultipleComparisons, analysisText, analysisTextBreakdownBy, analyzePhraseFrequencies, associationMeasure, blankReplacementCharacter, collocationOccurrenceMap, colorCodeOveruseColumn, compressValueRangeInTagClouds, contextButton, cutoff, displayProgress, filterBigramsByWordClass, filterMultiwordUnitsContainingVerbs, filterOutProperNames, filterSingleOccurrences, filterTrigramsByWordClass, filterUsingLocalMaxs, FONT_SIZE, frequencyAnalysisType, frequencyNormalizationMethod, FrequencyProfileResults, ignoreCaseAndDiacriticalMarks, leftSpan, markSignificantLogLikelihoodValues, maximumMultiwordUnitLength, minimumCount, minimumMultiwordUnitLength, minimumWorkCount, model, percentReportMethod, pluralWordFormString, progressReporter, referenceText, referenceTextBreakdownBy, resultsPanel, resultsScrollPane, resultsTable, rightSpan, roundNormalizedFrequencies, showPhraseFrequencies, showWordClasses, tableSelectionListener, useShortWorkTitlesInDialogs, useShortWorkTitlesInHeaders, useShortWorkTitlesInOutput, useShortWorkTitlesInWindowTitles, wordForm, wordFormString, wordOccs, wordToAnalyze
 
Constructor Summary
WordFrequencies()
          Create a word form frequency object.
 
Method Summary
protected  ResultsPanel generateResults(WordHoardSortedTableModel model, java.lang.String maxLabel, java.lang.String maxLabel2, java.lang.String maxLabel3, int totalWords, boolean showWordClass, boolean showMajorWordClass)
          Displays results of frequency analysis in a sorted table.
 void runAnalysis(javax.swing.JFrame parentWindow, ProgressReporter progressReporter)
          Run frequencies analysis.
 
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase
areResultOptionsAvailable, closeProgressReporter, createCloudAssociationMeasuresComboBox, createCompressValueRangeInTagCloudsCheckBox, generateResults, getAnalysisPercentColumnName, getChart, getCloud, getCloud, getColTitleWordFormString, getContext, getDoubleFormat, getPercentReportMethodFormat, getReferencePercentColumnName, getResultOptions, getResults, getTableFontSize, getTitle, handleTableSelectionChange, isCancelled, isChartAvailable, isCloudAvailable, isContextAvailable, isFilterAvailable, saveChart, setContextButton, showDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.northwestern.at.wordhoard.swing.calculator.analysis.AnalysisRunner
areResultOptionsAvailable, getChart, getCloud, getContext, getResultOptions, getResults, handleTableSelectionChange, isChartAvailable, isCloudAvailable, isContextAvailable, isFilterAvailable, saveChart, setContextButton, showDialog
 

Field Detail

WORDCLASSCOLUMN

protected static final int WORDCLASSCOLUMN
Column containing word classes in output table.

See Also:
Constant Field Values

MAJORWORDCLASSCOLUMN

protected static final int MAJORWORDCLASSCOLUMN
Column containing major word classes in output table.

See Also:
Constant Field Values
Constructor Detail

WordFrequencies

public WordFrequencies()
Create a word form frequency object.

Method Detail

runAnalysis

public void runAnalysis(javax.swing.JFrame parentWindow,
                        ProgressReporter progressReporter)
Run frequencies analysis.

Specified by:
runAnalysis in interface AnalysisRunner
Overrides:
runAnalysis in class FrequencyAnalysisRunnerBase
Parameters:
parentWindow - Parent window for dialogs in the analysis.
progressReporter - Progress display for analysis.

generateResults

protected ResultsPanel generateResults(WordHoardSortedTableModel model,
                                       java.lang.String maxLabel,
                                       java.lang.String maxLabel2,
                                       java.lang.String maxLabel3,
                                       int totalWords,
                                       boolean showWordClass,
                                       boolean showMajorWordClass)
Displays results of frequency analysis in a sorted table.

Parameters:
model - Table model holding data to display.
maxLabel - Maximum width value for first label column.
maxLabel2 - Maximum width value for second label column.
maxLabel3 - Maximum width value for third label column.
totalWords - Total count of word forms.
showWordClass - True to display word class.
showMajorWordClass - True to display major word class.