edu.northwestern.at.wordhoard.swing.calculator.dialogs
Class AnalysisDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by edu.northwestern.at.utils.swing.ModalDialog
                          extended by edu.northwestern.at.wordhoard.swing.calculator.dialogs.SkeletonDialog
                              extended by edu.northwestern.at.wordhoard.swing.calculator.dialogs.AnalysisDialog
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class AnalysisDialog
extends SkeletonDialog

Common base for frequency and collocation dialogs.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static boolean adjustChiSquareForMultipleComparisons
          True to adjust chi-square values for number of comparisons.
protected  javax.swing.JCheckBox adjustChiSquareForMultipleComparisonsCheckBox
          CheckBox for adjust chi-square field.
protected static int ADJUSTCHISQUAREFORMULTIPLECOMPSFIELD
           
static int AGGREGATEALLWORKPARTS
          Text breakdown methods for comparing texts.
protected static WordCounter analysisText
          Analysis corpus.
protected  javax.swing.JRadioButton analysisTextAggregateRadioButton
          Radio buttons for analysis text breakdown methods.
protected static int analysisTextBreakdownBy
          Analysis text breakdown method for comparisons.
protected static int ANALYSISTEXTBREAKDOWNBYFIELD
           
protected  javax.swing.JRadioButton analysisTextBreakdownByWorkPartRadioButton
           
protected  javax.swing.JRadioButton analysisTextBreakdownByWorkRadioButton
           
protected  WordCounterTreeCombo analysisTextChoices
          Analysis corpus choices.
protected static int ANALYSISTEXTFIELD
           
protected static int ANALYZEPHRASECOUNTSFIELD
           
protected static boolean analyzePhraseFrequencies
          Option to compare phrase counts.
protected  javax.swing.JCheckBox analyzePhraseFrequenciesCheckBox
          Dialog field for option to compare phrase counts.
protected static int associationMeasure
           
protected  javax.swing.JComboBox associationMeasureChoices
          Combobox selection field for association method.
protected static int ASSOCIATIONMEASUREFIELD
           
static int BREAKDOWNBYWORKPARTS
           
static int BREAKDOWNBYWORKS
           
protected  boolean cancelled
          True if dialog cancelled.
protected static int cloudMeasure
           
protected  javax.swing.JComboBox cloudMeasureChoices
          Combobox selection field for cloud association method.
static int COLLOCATEFREQUENCIES
          Collocation frequencies across all works in corpus.
static int COMPARESINGLECOLLOCATEFREQUENCIES
          Compare single word form in two works or corpora.
static int COMPARETEXTS
          Compare texts using similarity measures.
protected static boolean compressValueRangeInTagClouds
          True to compress value range in word cloud displays.
protected  javax.swing.JCheckBox compressValueRangeInTagCloudsCheckBox
          CheckBox for use short work names in headers field.
protected static int COMPRESSVALUERANGEINTEXTCLOUDS
           
protected static int cutoff
           
protected  XTextField cutoffField
          Frequency field dialog field.
protected static int CUTOFFFIELD
           
static int DEFAULTASSOCIATIONMEASURE
          Association measure used for multiword unit extraction.
static int DEFAULTCLOUDMEASURE
          Cloud measure used for multiword unit extraction and collocate extraction.
static int DEFAULTCUTOFF
          Frequency cutoff value.
static int DEFAULTFREQUENCYNORMALIZATIONMETHOD
          Count normalization used for historical profiling.
static int DEFAULTLEFTSPAN
          Left span (# of words to left to consider)
static int DEFAULTMAXIMUMMULTIWORDUNITLENGTH
           
static int DEFAULTMINIMUMCOUNT
          Default minimum count word form must have to be displayed when profiling multiple words.
static int DEFAULTMINIMUMMULTIWORDUNITLENGTH
          Minimum multiword unit length.
static int DEFAULTMINIMUMWORKCOUNT
          Default minimum # of works in which word form must appear to be displayed when profiling multiple words.
static int DEFAULTPERCENTREPORTMETHOD
          Count percent report method to use.
static int DEFAULTRIGHTSPAN
          Right span (# of words to right to consider)
static int DEFAULTTEXTBREAKDOWNBY
          Default breakdown method is by work.
protected static java.util.ArrayList dialogFieldIndices
          Fields to display in each dialog.
protected  java.lang.String dialogTitle
          Dialog title.
protected  int dialogType
          The dialog type.
static int DICE
           
protected static boolean filterBigramsByWordClass
          True to filter bigrams using word class rules.
protected  javax.swing.JCheckBox filterBigramsByWordClassCheckBox
          Dialog field for filter bigrams by word class flag.
protected static int FILTERBIGRAMSBYWORDCLASSFIELD
           
protected static boolean filterByWordClass
          True to filter collocates using word class rules.
protected  javax.swing.JCheckBox filterByWordClassCheckBox
          Dialog field for filter collocates by word class flag.
protected static int FILTERBYWORDCLASSFIELD
           
protected static boolean filterMultiwordUnitsContainingVerbs
          True to filter multiword units containing verbs.
protected  javax.swing.JCheckBox filterMultiwordUnitsContainingVerbsCheckBox
          Dialog field for filter multiword units containing verbs.
protected static int FILTERMULTIWORDUNITSCONTAININGVERBSFIELD
           
protected static boolean filterOutProperNames
          True to filter proper names.
protected  javax.swing.JCheckBox filterOutProperNamesField
          Dialog field for filtering out proper names.
protected static int FILTEROUTPROPERNAMESFIELD
           
protected static boolean filterSingleOccurrences
          True to filter ngrams which only occur once.
protected  javax.swing.JCheckBox filterSingleOccurrencesCheckBox
          Dialog field for filter ngrams that occur only once.
protected static int FILTERSINGLEOCCURRENCESFIELD
           
protected static boolean filterTrigramsByWordClass
          True to filter trigrams using word clas rules.
protected  javax.swing.JCheckBox filterTrigramsByWordClassCheckBox
          Dialog field for filter trigrams by word class flag.
protected static int FILTERTRIGRAMSBYWORDCLASSFIELD
           
protected static boolean filterUsingLocalMaxs
          True to filter ngrams using localmaxs
protected  javax.swing.JCheckBox filterUsingLocalMaxsCheckBox
          Dialog field for filter using localmaxs.
protected static int FILTERUSINGLOCALMAXSFIELD
           
static int FINDCOLLOCATES
          Compare single word form in one work or copus.
static int FINDMULTIWORDUNITS
          Find multiword units in a text.
protected static int FREQUENCYNORMALIZATIONFIELD
           
protected static int frequencyNormalizationMethod
           
protected  javax.swing.JComboBox frequencyNormalizationMethodChoices
          Combobox selection field for normalization method.
protected static boolean ignoreCaseAndDiacriticalMarks
          True to ignore case and diacritical marks.
protected  javax.swing.JCheckBox ignoreCaseAndDiacriticalMarksCheckBox
          Dialog for for ignore case and diacritical marks.
protected static int IGNORECASEANDDIACRITICALMARKSFIELD
           
protected  javax.swing.JComponent initialFocusField
          Initial focus fields.
protected static boolean[] isCollocateDialog
          True if dialog type is a collocation dialog, false otherwise.
protected static int LASTDIALOGTYPE
          Highest value for dialog type.
protected static int leftSpan
           
protected  XTextField leftSpanField
          Left span dialog field.
protected static int LEFTSPANFIELD
           
static int LOGLIKE
          Association measures for multiword unit extraction.
protected static int MARKSIGLOGLIKELIHOODFIELD
           
protected static boolean markSignificantLogLikelihoodValues
          True to mark significant log-likelihood values.
protected  javax.swing.JCheckBox markSignificantLogLikelihoodValuesField
          Dialog field for marking significant log-likelihood values.
protected static int maximumMultiwordUnitLength
           
protected  XTextField maximumMultiwordUnitLengthField
          Maximum multiword unit length dialog field.
protected static int MAXIMUMMULTIWORDUNITLENGTHFIELD
           
protected static int minimumCount
          Minimum count word form must have in analysis text to be displayed.
protected  XTextField minimumCountField
          Edit field for minimum count.
protected static int MINIMUMCOUNTFIELD
           
protected static int minimumMultiwordUnitLength
           
protected  XTextField minimumMultiwordUnitLengthField
          Minimum multiword unit length dialog field.
protected static int MINIMUMMULTIWORDUNITLENGTHFIELD
           
protected static int minimumWorkCount
          Minimum work count word form must appear in in order for word form to be displayed.
protected  XTextField minimumWorkCountField
          Edit field for minimum work count.
protected static int MINIMUMWORKCOUNTFIELD
           
static int MULTIPLEWORDFORMCOMPARISON
          Compare multiple word forms in two works or corpora.
protected static int MWUCLOUDMEASURE
           
static int NORMALIZENONE
          Count normalization methods for historical profiling.
static int NORMALIZETO10000
           
static int NORMALIZETOMEANWORKLENGTH
           
static int NORMALIZETOPARTSPERMILLION
           
protected static boolean[] onlyDisplayCorpora
          True to show only corpora in works comboboxes, false to show works too.
protected static int percentReportMethod
           
protected  javax.swing.JComboBox percentReportMethodChoices
          Combobox selection field for percentage reporting method.
protected static int PERCENTREPORTMETHODFIELD
           
static int PHISQUARED
           
protected static WordCounter referenceText
          Reference corpus.
protected  javax.swing.JRadioButton referenceTextAggregateRadioButton
          Radio buttons for reference text breakdown methods.
protected static int referenceTextBreakdownBy
          Reference text breakdown method for comparisons.
protected static int REFERENCETEXTBREAKDOWNBYFIELD
           
protected  javax.swing.JRadioButton referenceTextBreakdownByWorkPartRadioButton
           
protected  javax.swing.JRadioButton referenceTextBreakdownByWorkRadioButton
           
protected  WordCounterTreeCombo referenceTextChoices
          Reference corpus choices.
protected static int REFERENCETEXTFIELD
           
static int REPORTPARTSPER10000
           
static int REPORTPARTSPERMILLION
           
static int REPORTPERCENTS
          Report methods for count percents.
protected static int rightSpan
           
protected  XTextField rightSpanField
          Right span dialog field.
protected static int RIGHTSPANFIELD
           
protected static int ROUNDNORMALIZEDCOUNTSFIELD
           
protected static boolean roundNormalizedFrequencies
          Option to round normalized frequencies.
protected  javax.swing.JCheckBox roundNormalizedFrequenciesCheckBox
          Dialog field for option to round normalized frequencies.
static int SCP
           
protected static int SHOWPHRASECOUNTSFIELD
           
protected static boolean showPhraseFrequencies
          Option to display phrase counts.
protected  javax.swing.JCheckBox showPhraseFrequenciesCheckBox
          Dialog field for option to display phrase counts.
protected static boolean showWordClasses
          True to show all word classes following spellings and lemmata.
protected  javax.swing.JCheckBox showWordClassesField
          Dialog field for filtering out proper names.
protected static int SHOWWORDCLASSESFIELD
           
static int SI
           
static int SINGLECOLLOCATEHISTORY
          Compare single word form across all works in corpus.
static int SINGLEWORDFORMCOMPARISON
          Compare single word form in two works or corpora.
static int SINGLEWORDFORMHISTORY
          Compare single word form across all works in corpus.
protected static boolean useShortWorkTitlesInDialogs
          True to use short work names in dialogs.
protected static int USESHORTWORKTITLESINDIALOGS
           
protected  javax.swing.JCheckBox useShortWorkTitlesInDialogsCheckBox
          CheckBox for use short work names in dialogs field.
protected static boolean useShortWorkTitlesInHeaders
          True to use short work names in headers.
protected static int USESHORTWORKTITLESINHEADERS
           
protected  javax.swing.JCheckBox useShortWorkTitlesInHeadersCheckBox
          CheckBox for use short work names in headers field.
protected static boolean useShortWorkTitlesInOutput
          True to use short work names in output.
protected static int USESHORTWORKTITLESINOUTPUT
           
protected  javax.swing.JCheckBox useShortWorkTitlesInOutputCheckBox
          CheckBox for use short work names in output field.
protected static boolean useShortWorkTitlesInWindowTitles
          True to use short work names in titles.
protected static int USESHORTWORKTITLESINWINDOWTITLES
           
protected  javax.swing.JCheckBox useShortWorkTitlesInWindowTitlesCheckBox
          CheckBox for use short work names in titles field.
protected static int WORDFIELD
          Dialog field indices.
protected static int wordForm
          Word form.
protected  javax.swing.JComboBox wordFormChoices
          Word form choices for dialog box.
protected static int WORDFORMFIELD
           
static int WORDFORMFREQUENCIES
          Word form frequencies across all works in corpus.
protected static java.lang.String wordText
          Word form text to analyze.
protected  XTextField wordTextField
          Dialog field for word.
 
Fields inherited from class edu.northwestern.at.wordhoard.swing.calculator.dialogs.SkeletonDialog
cancel, cancelButton, cancelButtonName, ok, okButton, okButtonName, parentWindow, revert, revertButton, revertButtonName
 
Fields inherited from class edu.northwestern.at.utils.swing.ModalDialog
usePlatformPositionForDefaultButton
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AnalysisDialog(java.awt.Frame parentWindow, int dialogType)
          Constructs and displays a collocation dialog.
 
Method Summary
protected  void addFields(LabeledColumn dialogFields)
          Adds fields to the dialog.
protected  void buildDialog()
          Build the dialog.
protected  void cleanWordText()
          Clean word text.
 boolean getAdjustChiSquareForMultipleComparisons()
          Get adjust chi-square for multiple comparisons flag.
 WordCounter getAnalysisText()
          Get analysis corpus.
 int getAnalysisTextBreakdownBy()
          Get the analysis text breakdown method.
 boolean getanalyzePhraseFrequencies()
          Get the compare phrase frequencies flag.
static int getAssociationMeasure()
          Get the association measure for localmaxs.
static int getAssociationMeasure(java.lang.String associationMeasureString)
          Get association measure.
static java.lang.String getAssociationMeasureString(int associationMeasure)
          Get association measure string.
static int getCloudMeasure()
          Get the cloud measure for multiword unit and collocate analysis.
static boolean getCompressValueRangeInTagClouds()
          Get compress value range in word clouds flag.
 int getCutoff()
          Get cutoff value.
protected  void getDialogSettings()
          Get dialog settings based upon dialog type.
 boolean getFilterBigramsByWordClass()
          Get the filter bigrams by word class flag.
 boolean getFilterByWordClass()
          Get the filter by word classes flag.
 boolean getFilterMultiwordUnitsContainingVerbs()
          Get the filter multiword units containing verbs flag.
 boolean getFilterOutProperNames()
          Get the filter out proper names flag.
 boolean getFilterSingleOccurrences()
          Get the filter ngrams which only only once flag.
 boolean getFilterTrigramsByWordClass()
          Get the filter trigrams by word class flag.
 boolean getFilterUsingLocalMaxs()
          Get the filter ngrams using localmaxs.
 int getFrequencyNormalization(java.lang.String normalizationMethodString)
          Get frequency normalization from string.
 int getFrequencyNormalizationMethod()
          Get the frequency normalization method.
 java.lang.String getFrequencyNormalizationString(int frequencyNormalizationMethod)
          Get frequency normalization string.
 boolean getIgnoreCaseAndDiacriticalMarks()
          Get ignore case and diacritical marks flag.
 int getLeftSpan()
          Get left span value.
 boolean getMarkSignificantLogLikelihoodValues()
          Get the mark significant log-likelihood values flag.
 int getMaximumMultiwordUnitLength()
          Get the maximum multiword unit length.
 int getMinimumCount()
          Get minimum count.
 int getMinimumMultiwordUnitLength()
          Get the minimum multiword unit length.
 int getMinimumWorkCount()
          Get minimum work count.
 int getPercentReportMethod()
          Get the percent reporting method.
 int getPercentReportMethod(java.lang.String percentReportMethodString)
          Get percent report method from string.
 java.lang.String getPercentReportMethodString(int percentReportMethod)
          Get percent report method string.
 java.lang.String getPluralWordFormString(int wordForm)
          Get plural word form string.
protected static java.lang.String getProperty(java.util.Properties properties, java.lang.String propertyName)
          Load a property string.
 WordCounter getReferenceText()
          Get reference corpus.
 int getReferenceTextBreakdownBy()
          Get the reference text breakdown method.
 int getRightSpan()
          Get right span value.
 boolean getRoundNormalizedFrequencies()
          Get the round normalized frequencies option.
 boolean getShowPhraseFrequencies()
          Get the show phrase frequencies flag.
 boolean getShowWordClasses()
          Get the show all word classes flag.
static java.lang.String getTextBreakdownMethod(int textBreakdownMethod)
          Get string for text breakdown method.
static boolean getUseShortWorkTitlesInDialogs()
          Get use short work titles in dialogs flag.
static boolean getUseShortWorkTitlesInHeaders()
          Get use short work titles in headers flag.
static boolean getUseShortWorkTitlesInOutput()
          Get use short work titles in output flag.
static boolean getUseShortWorkTitlesInWindowTitles()
          Get use short work titles in window titles flag.
 int getWordForm()
          Get word form.
 int getWordForm(java.lang.String wordFormString)
          Get word form.
 java.lang.String getWordFormString(int wordForm)
          Get word form string.
 Spelling getWordText()
          Get word to analyze.
protected  void handleOKButtonPressed(java.awt.event.ActionEvent event)
          Process OK button pressed.
protected  void initializeFields()
          Initialize the dialog fields.
static void loadPreferences(java.util.Properties preferences)
          Load dialog preferences.
static java.util.Properties savePreferences()
          Get dialog preferences.
static void setCloudMeasure(int theCloudMeasure)
          Set the cloud measure for multiword unit and collocate analysis.
static void setCloudMeasure(java.lang.String cloudMeasureString)
          Set the cloud measure for multiword unit analysis.
static void setCompressValueRangeInTagClouds(boolean doCompression)
          Set compress value range in word clouds flag.
protected  boolean validateWordField()
          Check word field for valid value.
 
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.dialogs.SkeletonDialog
disableAllDialogFields, enableAllDialogFields, getCancelled, handleCancelButtonPressed, handleRevertButtonPressed
 
Methods inherited from class edu.northwestern.at.utils.swing.ModalDialog
add, add, add, add, add, addButton, addDefaultButton, fixDefaultButtonPosition, getUsePlatformPositionForDefaultButton, paintImmediately, setInitialFocus, setUsePlatformPositionForDefaultButton, setVisible, show, showUnpacked, showUnpacked
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WORDFORMFREQUENCIES

public static final int WORDFORMFREQUENCIES
Word form frequencies across all works in corpus.

See Also:
Constant Field Values

MULTIPLEWORDFORMCOMPARISON

public static final int MULTIPLEWORDFORMCOMPARISON
Compare multiple word forms in two works or corpora.

See Also:
Constant Field Values

SINGLEWORDFORMCOMPARISON

public static final int SINGLEWORDFORMCOMPARISON
Compare single word form in two works or corpora.

See Also:
Constant Field Values

SINGLEWORDFORMHISTORY

public static final int SINGLEWORDFORMHISTORY
Compare single word form across all works in corpus.

See Also:
Constant Field Values

COLLOCATEFREQUENCIES

public static final int COLLOCATEFREQUENCIES
Collocation frequencies across all works in corpus.

See Also:
Constant Field Values

FINDCOLLOCATES

public static final int FINDCOLLOCATES
Compare single word form in one work or copus.

See Also:
Constant Field Values

COMPARESINGLECOLLOCATEFREQUENCIES

public static final int COMPARESINGLECOLLOCATEFREQUENCIES
Compare single word form in two works or corpora.

See Also:
Constant Field Values

SINGLECOLLOCATEHISTORY

public static final int SINGLECOLLOCATEHISTORY
Compare single word form across all works in corpus.

See Also:
Constant Field Values

COMPARETEXTS

public static final int COMPARETEXTS
Compare texts using similarity measures.

See Also:
Constant Field Values

FINDMULTIWORDUNITS

public static final int FINDMULTIWORDUNITS
Find multiword units in a text.

See Also:
Constant Field Values

LASTDIALOGTYPE

protected static final int LASTDIALOGTYPE
Highest value for dialog type.

See Also:
Constant Field Values

dialogType

protected int dialogType
The dialog type.


WORDFIELD

protected static final int WORDFIELD
Dialog field indices.

All fields in the various frequency analysis and collocation dialogs have unique index.

See Also:
Constant Field Values

WORDFORMFIELD

protected static final int WORDFORMFIELD
See Also:
Constant Field Values

FILTERBYWORDCLASSFIELD

protected static final int FILTERBYWORDCLASSFIELD
See Also:
Constant Field Values

LEFTSPANFIELD

protected static final int LEFTSPANFIELD
See Also:
Constant Field Values

RIGHTSPANFIELD

protected static final int RIGHTSPANFIELD
See Also:
Constant Field Values

CUTOFFFIELD

protected static final int CUTOFFFIELD
See Also:
Constant Field Values

ANALYSISTEXTFIELD

protected static final int ANALYSISTEXTFIELD
See Also:
Constant Field Values

REFERENCETEXTFIELD

protected static final int REFERENCETEXTFIELD
See Also:
Constant Field Values

PERCENTREPORTMETHODFIELD

protected static final int PERCENTREPORTMETHODFIELD
See Also:
Constant Field Values

MARKSIGLOGLIKELIHOODFIELD

protected static final int MARKSIGLOGLIKELIHOODFIELD
See Also:
Constant Field Values

MINIMUMCOUNTFIELD

protected static final int MINIMUMCOUNTFIELD
See Also:
Constant Field Values

MINIMUMWORKCOUNTFIELD

protected static final int MINIMUMWORKCOUNTFIELD
See Also:
Constant Field Values

FREQUENCYNORMALIZATIONFIELD

protected static final int FREQUENCYNORMALIZATIONFIELD
See Also:
Constant Field Values

ROUNDNORMALIZEDCOUNTSFIELD

protected static final int ROUNDNORMALIZEDCOUNTSFIELD
See Also:
Constant Field Values

FILTEROUTPROPERNAMESFIELD

protected static final int FILTEROUTPROPERNAMESFIELD
See Also:
Constant Field Values

SHOWWORDCLASSESFIELD

protected static final int SHOWWORDCLASSESFIELD
See Also:
Constant Field Values

SHOWPHRASECOUNTSFIELD

protected static final int SHOWPHRASECOUNTSFIELD
See Also:
Constant Field Values

ANALYZEPHRASECOUNTSFIELD

protected static final int ANALYZEPHRASECOUNTSFIELD
See Also:
Constant Field Values

ANALYSISTEXTBREAKDOWNBYFIELD

protected static final int ANALYSISTEXTBREAKDOWNBYFIELD
See Also:
Constant Field Values

REFERENCETEXTBREAKDOWNBYFIELD

protected static final int REFERENCETEXTBREAKDOWNBYFIELD
See Also:
Constant Field Values

ASSOCIATIONMEASUREFIELD

protected static final int ASSOCIATIONMEASUREFIELD
See Also:
Constant Field Values

MINIMUMMULTIWORDUNITLENGTHFIELD

protected static final int MINIMUMMULTIWORDUNITLENGTHFIELD
See Also:
Constant Field Values

MAXIMUMMULTIWORDUNITLENGTHFIELD

protected static final int MAXIMUMMULTIWORDUNITLENGTHFIELD
See Also:
Constant Field Values

FILTERBIGRAMSBYWORDCLASSFIELD

protected static final int FILTERBIGRAMSBYWORDCLASSFIELD
See Also:
Constant Field Values

FILTERTRIGRAMSBYWORDCLASSFIELD

protected static final int FILTERTRIGRAMSBYWORDCLASSFIELD
See Also:
Constant Field Values

FILTERUSINGLOCALMAXSFIELD

protected static final int FILTERUSINGLOCALMAXSFIELD
See Also:
Constant Field Values

FILTERSINGLEOCCURRENCESFIELD

protected static final int FILTERSINGLEOCCURRENCESFIELD
See Also:
Constant Field Values

IGNORECASEANDDIACRITICALMARKSFIELD

protected static final int IGNORECASEANDDIACRITICALMARKSFIELD
See Also:
Constant Field Values

FILTERMULTIWORDUNITSCONTAININGVERBSFIELD

protected static final int FILTERMULTIWORDUNITSCONTAININGVERBSFIELD
See Also:
Constant Field Values

ADJUSTCHISQUAREFORMULTIPLECOMPSFIELD

protected static final int ADJUSTCHISQUAREFORMULTIPLECOMPSFIELD
See Also:
Constant Field Values

USESHORTWORKTITLESINDIALOGS

protected static final int USESHORTWORKTITLESINDIALOGS
See Also:
Constant Field Values

USESHORTWORKTITLESINOUTPUT

protected static final int USESHORTWORKTITLESINOUTPUT
See Also:
Constant Field Values

USESHORTWORKTITLESINWINDOWTITLES

protected static final int USESHORTWORKTITLESINWINDOWTITLES
See Also:
Constant Field Values

USESHORTWORKTITLESINHEADERS

protected static final int USESHORTWORKTITLESINHEADERS
See Also:
Constant Field Values

COMPRESSVALUERANGEINTEXTCLOUDS

protected static final int COMPRESSVALUERANGEINTEXTCLOUDS
See Also:
Constant Field Values

MWUCLOUDMEASURE

protected static final int MWUCLOUDMEASURE
See Also:
Constant Field Values

isCollocateDialog

protected static final boolean[] isCollocateDialog
True if dialog type is a collocation dialog, false otherwise.


onlyDisplayCorpora

protected static final boolean[] onlyDisplayCorpora
True to show only corpora in works comboboxes, false to show works too.


dialogTitle

protected java.lang.String dialogTitle
Dialog title.


initialFocusField

protected javax.swing.JComponent initialFocusField
Initial focus fields.


dialogFieldIndices

protected static java.util.ArrayList dialogFieldIndices
Fields to display in each dialog.


wordText

protected static java.lang.String wordText
Word form text to analyze.


wordTextField

protected XTextField wordTextField
Dialog field for word.


wordForm

protected static int wordForm
Word form.


wordFormChoices

protected javax.swing.JComboBox wordFormChoices
Word form choices for dialog box.


filterSingleOccurrences

protected static boolean filterSingleOccurrences
True to filter ngrams which only occur once.


filterByWordClass

protected static boolean filterByWordClass
True to filter collocates using word class rules.


filterBigramsByWordClass

protected static boolean filterBigramsByWordClass
True to filter bigrams using word class rules.


filterTrigramsByWordClass

protected static boolean filterTrigramsByWordClass
True to filter trigrams using word clas rules.


filterUsingLocalMaxs

protected static boolean filterUsingLocalMaxs
True to filter ngrams using localmaxs


ignoreCaseAndDiacriticalMarks

protected static boolean ignoreCaseAndDiacriticalMarks
True to ignore case and diacritical marks.


filterMultiwordUnitsContainingVerbs

protected static boolean filterMultiwordUnitsContainingVerbs
True to filter multiword units containing verbs.


filterSingleOccurrencesCheckBox

protected javax.swing.JCheckBox filterSingleOccurrencesCheckBox
Dialog field for filter ngrams that occur only once.


filterByWordClassCheckBox

protected javax.swing.JCheckBox filterByWordClassCheckBox
Dialog field for filter collocates by word class flag.


filterBigramsByWordClassCheckBox

protected javax.swing.JCheckBox filterBigramsByWordClassCheckBox
Dialog field for filter bigrams by word class flag.


filterTrigramsByWordClassCheckBox

protected javax.swing.JCheckBox filterTrigramsByWordClassCheckBox
Dialog field for filter trigrams by word class flag.


filterUsingLocalMaxsCheckBox

protected javax.swing.JCheckBox filterUsingLocalMaxsCheckBox
Dialog field for filter using localmaxs.


ignoreCaseAndDiacriticalMarksCheckBox

protected javax.swing.JCheckBox ignoreCaseAndDiacriticalMarksCheckBox
Dialog for for ignore case and diacritical marks.


filterMultiwordUnitsContainingVerbsCheckBox

protected javax.swing.JCheckBox filterMultiwordUnitsContainingVerbsCheckBox
Dialog field for filter multiword units containing verbs.


DEFAULTLEFTSPAN

public static final int DEFAULTLEFTSPAN
Left span (# of words to left to consider)

See Also:
Constant Field Values

leftSpan

protected static int leftSpan

leftSpanField

protected XTextField leftSpanField
Left span dialog field.


DEFAULTRIGHTSPAN

public static final int DEFAULTRIGHTSPAN
Right span (# of words to right to consider)

See Also:
Constant Field Values

rightSpan

protected static int rightSpan

rightSpanField

protected XTextField rightSpanField
Right span dialog field.


DEFAULTMINIMUMMULTIWORDUNITLENGTH

public static final int DEFAULTMINIMUMMULTIWORDUNITLENGTH
Minimum multiword unit length.

See Also:
Constant Field Values

minimumMultiwordUnitLength

protected static int minimumMultiwordUnitLength

minimumMultiwordUnitLengthField

protected XTextField minimumMultiwordUnitLengthField
Minimum multiword unit length dialog field.


DEFAULTMAXIMUMMULTIWORDUNITLENGTH

public static final int DEFAULTMAXIMUMMULTIWORDUNITLENGTH
See Also:
Constant Field Values

maximumMultiwordUnitLength

protected static int maximumMultiwordUnitLength

maximumMultiwordUnitLengthField

protected XTextField maximumMultiwordUnitLengthField
Maximum multiword unit length dialog field.


DEFAULTCUTOFF

public static final int DEFAULTCUTOFF
Frequency cutoff value.

See Also:
Constant Field Values

cutoff

protected static int cutoff

cutoffField

protected XTextField cutoffField
Frequency field dialog field.


analysisText

protected static WordCounter analysisText
Analysis corpus.


analysisTextChoices

protected WordCounterTreeCombo analysisTextChoices
Analysis corpus choices.


referenceText

protected static WordCounter referenceText
Reference corpus.


referenceTextChoices

protected WordCounterTreeCombo referenceTextChoices
Reference corpus choices.


DEFAULTMINIMUMCOUNT

public static final int DEFAULTMINIMUMCOUNT
Default minimum count word form must have to be displayed when profiling multiple words.

See Also:
Constant Field Values

minimumCount

protected static int minimumCount
Minimum count word form must have in analysis text to be displayed.


minimumCountField

protected XTextField minimumCountField
Edit field for minimum count.


DEFAULTMINIMUMWORKCOUNT

public static final int DEFAULTMINIMUMWORKCOUNT
Default minimum # of works in which word form must appear to be displayed when profiling multiple words.

See Also:
Constant Field Values

minimumWorkCount

protected static int minimumWorkCount
Minimum work count word form must appear in in order for word form to be displayed.


minimumWorkCountField

protected XTextField minimumWorkCountField
Edit field for minimum work count.


NORMALIZENONE

public static final int NORMALIZENONE
Count normalization methods for historical profiling.

See Also:
Constant Field Values

NORMALIZETO10000

public static final int NORMALIZETO10000
See Also:
Constant Field Values

NORMALIZETOMEANWORKLENGTH

public static final int NORMALIZETOMEANWORKLENGTH
See Also:
Constant Field Values

NORMALIZETOPARTSPERMILLION

public static final int NORMALIZETOPARTSPERMILLION
See Also:
Constant Field Values

DEFAULTFREQUENCYNORMALIZATIONMETHOD

public static final int DEFAULTFREQUENCYNORMALIZATIONMETHOD
Count normalization used for historical profiling.

See Also:
Constant Field Values

frequencyNormalizationMethod

protected static int frequencyNormalizationMethod

frequencyNormalizationMethodChoices

protected javax.swing.JComboBox frequencyNormalizationMethodChoices
Combobox selection field for normalization method.


roundNormalizedFrequencies

protected static boolean roundNormalizedFrequencies
Option to round normalized frequencies.


roundNormalizedFrequenciesCheckBox

protected javax.swing.JCheckBox roundNormalizedFrequenciesCheckBox
Dialog field for option to round normalized frequencies.


analyzePhraseFrequencies

protected static boolean analyzePhraseFrequencies
Option to compare phrase counts.


analyzePhraseFrequenciesCheckBox

protected javax.swing.JCheckBox analyzePhraseFrequenciesCheckBox
Dialog field for option to compare phrase counts.


showPhraseFrequencies

protected static boolean showPhraseFrequencies
Option to display phrase counts.


showPhraseFrequenciesCheckBox

protected javax.swing.JCheckBox showPhraseFrequenciesCheckBox
Dialog field for option to display phrase counts.


cancelled

protected boolean cancelled
True if dialog cancelled.


REPORTPERCENTS

public static final int REPORTPERCENTS
Report methods for count percents.

See Also:
Constant Field Values

REPORTPARTSPERMILLION

public static final int REPORTPARTSPERMILLION
See Also:
Constant Field Values

REPORTPARTSPER10000

public static final int REPORTPARTSPER10000
See Also:
Constant Field Values

DEFAULTPERCENTREPORTMETHOD

public static final int DEFAULTPERCENTREPORTMETHOD
Count percent report method to use.

See Also:
Constant Field Values

percentReportMethod

protected static int percentReportMethod

percentReportMethodChoices

protected javax.swing.JComboBox percentReportMethodChoices
Combobox selection field for percentage reporting method.


markSignificantLogLikelihoodValues

protected static boolean markSignificantLogLikelihoodValues
True to mark significant log-likelihood values.


markSignificantLogLikelihoodValuesField

protected javax.swing.JCheckBox markSignificantLogLikelihoodValuesField
Dialog field for marking significant log-likelihood values.


filterOutProperNames

protected static boolean filterOutProperNames
True to filter proper names.


filterOutProperNamesField

protected javax.swing.JCheckBox filterOutProperNamesField
Dialog field for filtering out proper names.


showWordClasses

protected static boolean showWordClasses
True to show all word classes following spellings and lemmata.


showWordClassesField

protected javax.swing.JCheckBox showWordClassesField
Dialog field for filtering out proper names.


AGGREGATEALLWORKPARTS

public static final int AGGREGATEALLWORKPARTS
Text breakdown methods for comparing texts.

See Also:
Constant Field Values

BREAKDOWNBYWORKS

public static final int BREAKDOWNBYWORKS
See Also:
Constant Field Values

BREAKDOWNBYWORKPARTS

public static final int BREAKDOWNBYWORKPARTS
See Also:
Constant Field Values

DEFAULTTEXTBREAKDOWNBY

public static final int DEFAULTTEXTBREAKDOWNBY
Default breakdown method is by work.

See Also:
Constant Field Values

analysisTextBreakdownBy

protected static int analysisTextBreakdownBy
Analysis text breakdown method for comparisons.


analysisTextAggregateRadioButton

protected javax.swing.JRadioButton analysisTextAggregateRadioButton
Radio buttons for analysis text breakdown methods.


analysisTextBreakdownByWorkRadioButton

protected javax.swing.JRadioButton analysisTextBreakdownByWorkRadioButton

analysisTextBreakdownByWorkPartRadioButton

protected javax.swing.JRadioButton analysisTextBreakdownByWorkPartRadioButton

referenceTextBreakdownBy

protected static int referenceTextBreakdownBy
Reference text breakdown method for comparisons.


referenceTextAggregateRadioButton

protected javax.swing.JRadioButton referenceTextAggregateRadioButton
Radio buttons for reference text breakdown methods.


referenceTextBreakdownByWorkRadioButton

protected javax.swing.JRadioButton referenceTextBreakdownByWorkRadioButton

referenceTextBreakdownByWorkPartRadioButton

protected javax.swing.JRadioButton referenceTextBreakdownByWorkPartRadioButton

LOGLIKE

public static final int LOGLIKE
Association measures for multiword unit extraction.

See Also:
Constant Field Values

DICE

public static final int DICE
See Also:
Constant Field Values

PHISQUARED

public static final int PHISQUARED
See Also:
Constant Field Values

SI

public static final int SI
See Also:
Constant Field Values

SCP

public static final int SCP
See Also:
Constant Field Values

DEFAULTASSOCIATIONMEASURE

public static final int DEFAULTASSOCIATIONMEASURE
Association measure used for multiword unit extraction.

See Also:
Constant Field Values

associationMeasure

protected static int associationMeasure

associationMeasureChoices

protected javax.swing.JComboBox associationMeasureChoices
Combobox selection field for association method.


DEFAULTCLOUDMEASURE

public static final int DEFAULTCLOUDMEASURE
Cloud measure used for multiword unit extraction and collocate extraction.

See Also:
Constant Field Values

cloudMeasure

protected static int cloudMeasure

cloudMeasureChoices

protected javax.swing.JComboBox cloudMeasureChoices
Combobox selection field for cloud association method.


adjustChiSquareForMultipleComparisons

protected static boolean adjustChiSquareForMultipleComparisons
True to adjust chi-square values for number of comparisons.


adjustChiSquareForMultipleComparisonsCheckBox

protected javax.swing.JCheckBox adjustChiSquareForMultipleComparisonsCheckBox
CheckBox for adjust chi-square field.


useShortWorkTitlesInDialogs

protected static boolean useShortWorkTitlesInDialogs
True to use short work names in dialogs.


useShortWorkTitlesInDialogsCheckBox

protected javax.swing.JCheckBox useShortWorkTitlesInDialogsCheckBox
CheckBox for use short work names in dialogs field.


useShortWorkTitlesInOutput

protected static boolean useShortWorkTitlesInOutput
True to use short work names in output.


useShortWorkTitlesInOutputCheckBox

protected javax.swing.JCheckBox useShortWorkTitlesInOutputCheckBox
CheckBox for use short work names in output field.


useShortWorkTitlesInWindowTitles

protected static boolean useShortWorkTitlesInWindowTitles
True to use short work names in titles.


useShortWorkTitlesInWindowTitlesCheckBox

protected javax.swing.JCheckBox useShortWorkTitlesInWindowTitlesCheckBox
CheckBox for use short work names in titles field.


useShortWorkTitlesInHeaders

protected static boolean useShortWorkTitlesInHeaders
True to use short work names in headers.


useShortWorkTitlesInHeadersCheckBox

protected javax.swing.JCheckBox useShortWorkTitlesInHeadersCheckBox
CheckBox for use short work names in headers field.


compressValueRangeInTagClouds

protected static boolean compressValueRangeInTagClouds
True to compress value range in word cloud displays.


compressValueRangeInTagCloudsCheckBox

protected javax.swing.JCheckBox compressValueRangeInTagCloudsCheckBox
CheckBox for use short work names in headers field.

Constructor Detail

AnalysisDialog

public AnalysisDialog(java.awt.Frame parentWindow,
                      int dialogType)
Constructs and displays a collocation dialog.

Parameters:
parentWindow - Parent window.
dialogType - The dialog type.
Method Detail

getDialogSettings

protected void getDialogSettings()
Get dialog settings based upon dialog type.


buildDialog

protected void buildDialog()
Build the dialog.

Overrides:
buildDialog in class SkeletonDialog

initializeFields

protected void initializeFields()
Initialize the dialog fields.

Overrides:
initializeFields in class SkeletonDialog

addFields

protected void addFields(LabeledColumn dialogFields)
Adds fields to the dialog.

Overrides:
addFields in class SkeletonDialog
Parameters:
dialogFields - The component holding the dialog fields.

validateWordField

protected boolean validateWordField()
Check word field for valid value.

Returns:
true if word field is valid.

handleOKButtonPressed

protected void handleOKButtonPressed(java.awt.event.ActionEvent event)
Process OK button pressed.

Overrides:
handleOKButtonPressed in class SkeletonDialog
Parameters:
event - The event.

Allows overriding the OK button handling from a subclass.


getWordForm

public int getWordForm(java.lang.String wordFormString)
Get word form.

Parameters:
wordFormString - Word form string.
Returns:
The word form.

getPercentReportMethod

public int getPercentReportMethod(java.lang.String percentReportMethodString)
Get percent report method from string.

Parameters:
percentReportMethodString - Percent report method string.
Returns:
The percent reporting method.

getPercentReportMethodString

public java.lang.String getPercentReportMethodString(int percentReportMethod)
Get percent report method string.

Parameters:
percentReportMethod - The percent reporting method.
Returns:
The percent reporting method as a string.

getWordFormString

public java.lang.String getWordFormString(int wordForm)
Get word form string.

Returns:
The word form string.

getPluralWordFormString

public java.lang.String getPluralWordFormString(int wordForm)
Get plural word form string.

Returns:
The plural word form string.

getFrequencyNormalization

public int getFrequencyNormalization(java.lang.String normalizationMethodString)
Get frequency normalization from string.

Parameters:
normalizationMethodString - Normalization method string.
Returns:
The normalization method.

getFrequencyNormalizationString

public java.lang.String getFrequencyNormalizationString(int frequencyNormalizationMethod)
Get frequency normalization string.

Parameters:
frequencyNormalizationMethod - The normalization method.
Returns:
The normalization method as a string.

getTextBreakdownMethod

public static java.lang.String getTextBreakdownMethod(int textBreakdownMethod)
Get string for text breakdown method.

Parameters:
textBreakdownMethod - Text breakdown method.
Returns:
Displayable string for text breakdown method.

getAssociationMeasureString

public static java.lang.String getAssociationMeasureString(int associationMeasure)
Get association measure string.

Parameters:
associationMeasure - The association measure.
Returns:
The association measure as a string.

getAssociationMeasure

public static int getAssociationMeasure(java.lang.String associationMeasureString)
Get association measure.

Parameters:
associationMeasureString - The association measure string.
Returns:
The association measure index.

cleanWordText

protected void cleanWordText()
Clean word text.

The "wordText" and "wordTextField" entries are cleaned as follows.


getWordText

public Spelling getWordText()
Get word to analyze.

Returns:
The word.

getWordForm

public int getWordForm()
Get word form.

Returns:
The word form.

getLeftSpan

public int getLeftSpan()
Get left span value.

Returns:
The left span value.

getRightSpan

public int getRightSpan()
Get right span value.

Returns:
The right span value.

getCutoff

public int getCutoff()
Get cutoff value.

Returns:
The cutoff value.

getMinimumCount

public int getMinimumCount()
Get minimum count.

Returns:
The minimum count for which to display results.

getMinimumWorkCount

public int getMinimumWorkCount()
Get minimum work count.

Returns:
The minimum work count for which to display results.

getFrequencyNormalizationMethod

public int getFrequencyNormalizationMethod()
Get the frequency normalization method.

Returns:
The frequency normalization method.

getRoundNormalizedFrequencies

public boolean getRoundNormalizedFrequencies()
Get the round normalized frequencies option.

Returns:
true to round normalized frequencies.

getAnalysisText

public WordCounter getAnalysisText()
Get analysis corpus.

Returns:
The analysis text.

getReferenceText

public WordCounter getReferenceText()
Get reference corpus.

Returns:
The reference text.

getPercentReportMethod

public int getPercentReportMethod()
Get the percent reporting method.

Returns:
The percent reporting method.

getMarkSignificantLogLikelihoodValues

public boolean getMarkSignificantLogLikelihoodValues()
Get the mark significant log-likelihood values flag.

Returns:
True to mark significant log-likelihood values.

getFilterOutProperNames

public boolean getFilterOutProperNames()
Get the filter out proper names flag.

Returns:
True to filter out probably proper names.

getShowWordClasses

public boolean getShowWordClasses()
Get the show all word classes flag.

Returns:
True to show word classes for all words.

getShowPhraseFrequencies

public boolean getShowPhraseFrequencies()
Get the show phrase frequencies flag.

Returns:
True to show phrase frequencies.

getanalyzePhraseFrequencies

public boolean getanalyzePhraseFrequencies()
Get the compare phrase frequencies flag.

Returns:
True to compare phrase frequencies.

getFilterByWordClass

public boolean getFilterByWordClass()
Get the filter by word classes flag.

Returns:
True to filter collocates using word classes.

getAnalysisTextBreakdownBy

public int getAnalysisTextBreakdownBy()
Get the analysis text breakdown method.

Returns:
The analysis text breakdown method.

getReferenceTextBreakdownBy

public int getReferenceTextBreakdownBy()
Get the reference text breakdown method.

Returns:
The reference text breakdown method.

getAssociationMeasure

public static int getAssociationMeasure()
Get the association measure for localmaxs.

Returns:
The association measure for localmaxs.

getCloudMeasure

public static int getCloudMeasure()
Get the cloud measure for multiword unit and collocate analysis.

Returns:
The cloud measure.

setCloudMeasure

public static void setCloudMeasure(int theCloudMeasure)
Set the cloud measure for multiword unit and collocate analysis.

Parameters:
theCloudMeasure - The cloud measure.

setCloudMeasure

public static void setCloudMeasure(java.lang.String cloudMeasureString)
Set the cloud measure for multiword unit analysis.

Parameters:
cloudMeasureString - The cloud measure for multiword unit analysis.

getMinimumMultiwordUnitLength

public int getMinimumMultiwordUnitLength()
Get the minimum multiword unit length.

Returns:
The minimum multiword unit length.

getMaximumMultiwordUnitLength

public int getMaximumMultiwordUnitLength()
Get the maximum multiword unit length.

Returns:
The maximum multiword unit length.

getFilterBigramsByWordClass

public boolean getFilterBigramsByWordClass()
Get the filter bigrams by word class flag.

Returns:
true to filter bigrams by word class.

getFilterTrigramsByWordClass

public boolean getFilterTrigramsByWordClass()
Get the filter trigrams by word class flag.

Returns:
true to filter trigrams by word class.

getFilterUsingLocalMaxs

public boolean getFilterUsingLocalMaxs()
Get the filter ngrams using localmaxs.

Returns:
true to filter ngrams using localmaxs.

getFilterMultiwordUnitsContainingVerbs

public boolean getFilterMultiwordUnitsContainingVerbs()
Get the filter multiword units containing verbs flag.

Returns:
true to filter multiword units containing verbs.

getFilterSingleOccurrences

public boolean getFilterSingleOccurrences()
Get the filter ngrams which only only once flag.

Returns:
true to filter ngrams which occur only once.

getIgnoreCaseAndDiacriticalMarks

public boolean getIgnoreCaseAndDiacriticalMarks()
Get ignore case and diacritical marks flag.

Returns:
true to ignore case and diacritical marks.

getAdjustChiSquareForMultipleComparisons

public boolean getAdjustChiSquareForMultipleComparisons()
Get adjust chi-square for multiple comparisons flag.

Returns:
true to adjust chi-square p values for multiple comparisons.

getUseShortWorkTitlesInDialogs

public static boolean getUseShortWorkTitlesInDialogs()
Get use short work titles in dialogs flag.

Returns:
true to use short work titles in dialogs.

getUseShortWorkTitlesInHeaders

public static boolean getUseShortWorkTitlesInHeaders()
Get use short work titles in headers flag.

Returns:
true to use short work titles in headers.

getUseShortWorkTitlesInWindowTitles

public static boolean getUseShortWorkTitlesInWindowTitles()
Get use short work titles in window titles flag.

Returns:
true to use short work titles in window titles.

getUseShortWorkTitlesInOutput

public static boolean getUseShortWorkTitlesInOutput()
Get use short work titles in output flag.

Returns:
true to use short work titles in output tables.

getCompressValueRangeInTagClouds

public static boolean getCompressValueRangeInTagClouds()
Get compress value range in word clouds flag.

Returns:
true to compress value range in word clouds.

setCompressValueRangeInTagClouds

public static void setCompressValueRangeInTagClouds(boolean doCompression)
Set compress value range in word clouds flag.

Parameters:
doCompression - true to compress value range in word clouds.

savePreferences

public static java.util.Properties savePreferences()
Get dialog preferences.


getProperty

protected static java.lang.String getProperty(java.util.Properties properties,
                                              java.lang.String propertyName)
Load a property string.

Parameters:
properties - The properties.
propertyName - The property name to load.
Returns:
The property values. Null values are converted to empty strings.

loadPreferences

public static void loadPreferences(java.util.Properties preferences)
Load dialog preferences.