|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase edu.northwestern.at.wordhoard.swing.calculator.analysis.TrackWordOverTime
public class TrackWordOverTime
Generates a longitudinal profile of a word form's frequency of use.
Field Summary | |
---|---|
protected BarChartPanel |
barChartPanel
Chart panel. |
protected static int |
FREQCOLUMN
Normalized frequency column. |
protected ResultsPanel |
mainResultsPanel
Main results panel. |
Constructor Summary | |
---|---|
TrackWordOverTime()
Create a single word form historical frequency profile object. |
Method Summary | |
---|---|
protected boolean |
analyzeOneYear(int yearWordCount,
int yearTotalCount,
int year,
int worksThisYear,
int refTotalCount,
int worksInRef,
WordHoardSortedTableModel model,
ProgressReporter progressReporter)
Analyze a single year. |
protected void |
doFreq(Spelling wordToAnalyze,
int year,
int worksThisYear,
int worksInRef,
int yearWordCount,
int yearTotalCount,
int refWorksTotalCount,
WordHoardSortedTableModel model)
Perform frequency comparison of year counts for all works in a corpus. |
protected ResultsPanel |
generateEmptyResults(java.lang.String title,
java.lang.String shortTitle,
java.lang.String extraText)
Generate results when publication dates available. |
protected ResultsPanel |
generateResults(WordHoardSortedTableModel model)
Displays results of frequency analysis in a sorted table. |
ResultsPanel |
getChart()
Show bar chart of historical frequency profile. |
boolean |
isChartAvailable()
Is chart output available? |
void |
runAnalysis(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Run an analysis. |
void |
saveChart()
Saves chart. |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase |
---|
areResultOptionsAvailable, closeProgressReporter, createCloudAssociationMeasuresComboBox, createCompressValueRangeInTagCloudsCheckBox, generateResults, getAnalysisPercentColumnName, getCloud, getCloud, getColTitleWordFormString, getContext, getDoubleFormat, getPercentReportMethodFormat, getReferencePercentColumnName, getResultOptions, getResults, getTableFontSize, getTitle, handleTableSelectionChange, isCancelled, isCloudAvailable, isContextAvailable, isFilterAvailable, 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, getCloud, getContext, getResultOptions, getResults, handleTableSelectionChange, isCloudAvailable, isContextAvailable, isFilterAvailable, setContextButton, showDialog |
Field Detail |
---|
protected static final int FREQCOLUMN
protected BarChartPanel barChartPanel
protected ResultsPanel mainResultsPanel
Constructor Detail |
---|
public TrackWordOverTime()
Method Detail |
---|
protected boolean analyzeOneYear(int yearWordCount, int yearTotalCount, int year, int worksThisYear, int refTotalCount, int worksInRef, WordHoardSortedTableModel model, ProgressReporter progressReporter)
yearWordCount
- Count of work to analyze in this year.yearTotalCount
- Total number of words in this year.year
- The year.worksThisYear
- The number of works in this year.refTotalCount
- The count of words in the reference corpus.worksInRef
- The number of works in the reference corpus.model
- Table model holding results.progressReporter
- The progress dialog.
public void runAnalysis(javax.swing.JFrame parentWindow, ProgressReporter progressReporter)
runAnalysis
in interface AnalysisRunner
runAnalysis
in class FrequencyAnalysisRunnerBase
parentWindow
- Parent window for dialogs in the analysis.progressReporter
- Progress display for analysis. protected void doFreq(Spelling wordToAnalyze, int year, int worksThisYear, int worksInRef, int yearWordCount, int yearTotalCount, int refWorksTotalCount, WordHoardSortedTableModel model)
wordToAnalyze
- The word to analyze.year
- The year being analyzed.worksThisYear
- Number of works in this year.worksInRef
- Total number of works for all years.yearWordCount
- Count of word in texts for year.yearTotalCount
- Total number of words in texts for year.refWorksTotalCount
- Total number of words in reference corpus.model
- Table model in which to store results.
Computes the following quantities for display for one year.
protected ResultsPanel generateResults(WordHoardSortedTableModel model)
model
- Table model containing results. protected ResultsPanel generateEmptyResults(java.lang.String title, java.lang.String shortTitle, java.lang.String extraText)
public ResultsPanel getChart()
getChart
in interface AnalysisRunner
getChart
in class FrequencyAnalysisRunnerBase
public boolean isChartAvailable()
isChartAvailable
in interface AnalysisRunner
isChartAvailable
in class FrequencyAnalysisRunnerBase
public void saveChart()
saveChart
in interface AnalysisRunner
saveChart
in class FrequencyAnalysisRunnerBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |