Public Member Functions | |
| LemurIndexGUI (JFrame f) | |
| void | actionPerformed (ActionEvent e) |
| void | tableChanged (TableModelEvent e) |
| void | itemStateChanged (ItemEvent e) |
| void | caretUpdate (CaretEvent event) |
| void | buildDone () |
| void | buildFailed () |
Static Public Member Functions | |
| void | main (String[] args) |
Protected Member Functions | |
| void | makeCompactGrid (Container parent, int rows, int cols, int initialX, int initialY, int xPad, int yPad) |
Static Protected Member Functions | |
| ImageIcon | createImageIcon (String path) |
Package Attributes | |
| JBuildIndex | builder |
Private Member Functions | |
| JMenuBar | makeMenuBar () |
| JMenuItem | makeMenuItem (String label) |
| JPanel | makePanel (String title) |
| JPanel | makeLabeledComponent (String label, JComponent elt) |
| JPanel | makeLabeledComponent (String label, JComponent elt1, JComponent elt2) |
| void | addLabeledRow (JPanel panel, Spring height, String label, JComponent elt1, JComponent elt2) |
| void | addLabeledRow (JPanel panel, Spring lead, Spring height, String label, JComponent elt1, JComponent elt2) |
| void | addLabeledRow (JPanel panel, Spring height, String label, JComponent elt1) |
| void | addLabeledRow (JPanel panel, Spring lead, Spring height, String label, JComponent elt1) |
| void | setIndexTypeSupported (boolean supported) |
| void | makeHelp () |
| String | encodeRegexp (String regexp) |
| boolean | safeToBuildIndex () |
| String | removeExt (String name) |
| void | deleteFiles (File dir, String filter) |
| void | recurseDelete (File file) |
| void | ensureMessagesVisible () |
| void | buildIndex () |
| boolean | writeParamFiles () |
| boolean | writeParams () |
| boolean | writeDataFiles () |
| void | writeDataFiles (PrintWriter p, File file, FileFilter f) |
| String | encodeIdx () |
| String | encodeDM () |
| String | encodeMem () |
| void | printParam (PrintWriter p, String parm, String val) |
| void | errorMsg (Component par, String mesg) |
| void | showException (Exception e) |
| Thread | blinker (final String s1, final String s2) |
| long | encodeIndriMem () |
| String[] | formatDataFiles () |
| void | formatDataFiles (File file, FileFilter f, Vector accum, String offsetFile) |
| void | buildIndriIndex () |
| SpringLayout.Constraints | getConstraintsForCell (int row, int col, Container parent, int cols) |
Static Private Member Functions | |
| void | setFrameIcon (JFrame fr, String file) |
| void | createAndShowGUI () |
Private Attributes | |
| JLabel | status |
| JLabel | arstem |
| JTextArea | messages |
| JTabbedPane | tabbedPane |
| JCheckBox | countStops |
| JCheckBox | doDM |
| JCheckBox | doStem |
| JCheckBox | doRecurse |
| JCheckBox | doFilter |
| JCheckBox | doStop |
| JCheckBox | doAcro |
| int | DMnum |
| JComboBox | indexTypeBox |
| JComboBox | dmTypeBox |
| JComboBox | stemmers |
| JComboBox | stemFuncs |
| JComboBox | languageBox |
| JComboBox | memoryLim |
| JComboBox | docFormat |
| JButton | browse |
| JButton | cfbrowse |
| JButton | dmbrowse |
| JButton | stemBrowse |
| JButton | stopBrowse |
| JButton | acroBrowse |
| JButton | cfRemove |
| JButton | go |
| JButton | stop |
| JTextField | iname |
| JTextField | stopwordlist |
| JTextField | acroList |
| JTextField | filterString |
| JList | collectionFiles |
| DefaultListModel | cfModel |
| Thread | bl |
| final JFileChooser | fc |
| String | stopwords |
| String | bindir |
| JMenuBar | menuBar |
| JMenu | fileMenu |
| JMenu | helpMenu |
| JMenuItem | fOpen |
| JMenuItem | fSave |
| JMenuItem | fQuit |
| JMenuItem | hHelp |
| JMenuItem | hAbout |
| ImageIcon | lemurIcon |
| String | paramFileName |
| String | dataFilesName |
| String | fileList |
| JFrame | helpFrame |
| JFrame | parent |
| JPanel | indexFieldPanel |
| JTable | fieldTable |
| FieldTableModel | fieldTableModel |
| JButton | btnAddField |
| JButton | btnRemoveField |
| JTable | offsetAnnotationFileTable |
| OffsetAnnotationTableModel | offsetAnnotationFilesTableModel |
| JTextField | txtMetadataFields |
| JTextField | txtPathToHarvestLinks |
| JButton | btnHarvestLinks |
| volatile boolean | blinking = false |
| Vector | dataFilesOffsetFiles = null |
Static Private Attributes | |
| final String | SLASH = System.getProperty("file.separator") |
| final String | DMNAME = "dm" |
| final String | helpFile = "properties/IndexGUI.html" |
| final String | iconFile = "properties/lemur_head_32.gif" |
| final String | logoFile = "properties/lemur_logo.gif" |
| final String | defaultStopwordFile = "properties" + SLASH + "stoplist.dft" |
| final String[] | indTypes = {"KeyfileIncIndex", "LemurIndriIndex"} |
| final String[] | mgrTypes = {"Element", "Keyfile"} |
| final String[] | formats = {"trec", "web", "reuters"} |
| final String[] | languages = {"English", "Chinese", "Arabic"} |
| final String[] | lims |
| final String[] | sTypes = {"Krovetz", "Porter"} |
| final String[] | sFuncs |
| final String | aboutText |
| String[] | fieldColumnTooltips = {"The field name to index", "Is the field numeric?"} |
| String[] | annotationsColumnTooltips = {"The datafile for the annotations", "The path to the annotation file(s)"} |
mjh - 5/26/06 - modified various defaults, HCI issues
mjh - 11/21/07 - Added indri indexing and field support
|
|
Get the ball rolling. |
|
|
Omnibus for responding to user actions. |
|
||||||||||||||||||||||||
|
Add a row with 1 element to a JPanel using SpringLayout
|
|
||||||||||||||||||||
|
Add a row with 1 element to a JPanel using SpringLayout
|
|
||||||||||||||||||||||||||||
|
Add a row with 2 elements to a JPanel using SpringLayout
|
|
||||||||||||||||||||||||
|
Add a row with 2 elements to a JPanel using SpringLayout
|
|
||||||||||||
|
Make the status line blink while working. |
|
|
|
|
|
|
|
|
Construct the parameter files and build the index. |
|
|
Ask the IndexEnvironment to add the files. |
|
|
Listens to the index name text field. This enables updating the state of the BuildIndex button when the user types in the name of the index directly. |
|
|
Create the GUI and show it. For thread safety, this method should be invoked from the event-dispatching thread. |
|
|
Returns an ImageIcon, or null if the path was invalid.
|
|
||||||||||||
|
|
|
|
Encode the document manager type as appropriate to use as a parameter value.
|
|
|
Encode the index type as appropriate to use as a parameter value.
|
|
|
helper functions for indri build index |
|
|
Encode the memory limit selection into an integer number of bytes.
|
|
|
Rewrite a shell filename pattern to a regular expression.
|
|
|
Keeps the message pane showing the last line appended. |
|
||||||||||||
|
|
|
||||||||||||||||||||
|
Accumulate filenames for the input list. If the File is a directory, iterate over all of the files in that directory that satisfy the filter. If recurse into subdirectories is selected and the File is a directory, invoke recursivly on on all directories within the directory.
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
Listens to the check boxes. |
|
|
Fire it up. |
|
||||||||||||||||||||||||||||||||
|
|
|
|
Create the frame that shows the help file and render the html. Saves time when the user opens the help. |
|
||||||||||||||||
|
Create a panel with three elements.
|
|
||||||||||||
|
Create a panel with two elements.
|
|
|
Create the applications menu bar.
|
|
|
Creates a JMenuItem with this as its ActionListener.
|
|
|
Create a JPanel with BorderLayout.
|
|
||||||||||||||||
|
Write a parameter = value; line to the parameter file. Append the same line to the messages text area.
|
|
|
|
|
|
|
|
|
Tests for likely failure scenarios. If the path to the index doesn't exist, fail. If the named index already exists, offer a choice do either overwrite it or not. If overwrite is selected, removes all files of the form indexname.* in the target directory. This is potentially dangerous. NB: Could be adapted to work with incremental builds.
|
|
||||||||||||
|
|
|
|
|
|
|
Format an exception message in the messages text area.
|
|
|
Listens for table model changes |
|
||||||||||||||||
|
Write filenames to the datafiles file. Append the same line to the messages text area. If the File is a directory, iterate over all of the files in that directory that satisfy the filter. If recurse into subdirectories is selected and the File is a directory, invoke recursivly on on all directories within the directory.
|
|
|
Create the datafiles file and write filenames from the input files list.
|
|
|
Write the parameters file and dataFiles file, echoing their contents in the messages window.
|
|
|
Write the lemur parameters to a file.
|
|
|
Initial value: "Lemur Indexer UI 1.0\n" + "Copyright (c) 2004-2007 The Lemur Project\n" + "University of Massachusetts and Carnegie Mellon University\n" + "http://www.lemurproject.org/" |
|
|
Action Buttons |
|
|
input/browseable filename |
|
|
|
|
|
Status line messages visible for all tabs. |
|
|
data directory paths |
|
|
separate thread for blinking the status |
|
|
Is the blinker running? |
|
|
Action Buttons |
|
|
|
|
|
|
|
|
|
|
|
Thread for building index |
|
|
Action Buttons |
|
|
hold the file names |
|
|
Action Buttons |
|
|
browse multiple filenames |
|
|
Boolean choices |
|
|
Index build dataFiles parameter file name |
|
|
Create the datafiles list of strings.
|
|
|
|
|
|
Action Buttons |
|
|
|
|
|
what number DM this is for incremental index |
|
|
Multiple choices |
|
|
Boolean choices |
|
|
Multiple choices |
|
|
Boolean choices |
|
|
Boolean choices |
|
|
Boolean choices |
|
|
Boolean choices |
|
|
Boolean choices |
|
|
Initial value:
new JFileChooser(System.getProperties().getProperty("user.home"))
|
|
|
|
|
|
|
|
|
|
|
|
List of data files (expanded) |
|
|
Menus |
|
|
filename filter |
|
|
Menu Items |
|
|
Lemur document formats |
|
|
Menu Items |
|
|
Menu Items |
|
|
Action Buttons |
|
|
Menu Items |
|
|
Help file for the application |
|
|
Frame for help window |
|
|
Menus |
|
|
Menu Items |
|
|
The little lemur icon |
|
|
input/browseable filename |
|
|
Fields and Metadata items |
|
|
Multiple choices |
|
|
Lemur index types |
|
|
Multiple choices |
|
|
Lemur document formats |
|
|
The Lemur Icon. |
|
|
Initial value:
{
" 64 MB", " 96 MB", " 128 MB",
" 256 MB", " 512 MB", "768 MB", "1024 MB"}
|
|
|
The big lemur logo with L |
|
|
Multiple choices |
|
|
MenuBar |
|
|
Messages pane for prog output |
|
|
Lemur document manager types |
|
|
|
|
|
|
|
|
Index build parameter file name |
|
|
Frame for help window |
|
|
Initial value:
{
"arabic_light10_stop",
"arabic_light10", "arabic_norm2",
"arabic_norm2_stop"}
|
|
|
|
|
|
Status line messages visible for all tabs. |
|
|
Action Buttons |
|
|
Multiple choices |
|
|
Multiple choices |
|
|
Action Buttons |
|
|
Action Buttons |
|
|
input/browseable filename |
|
|
data directory paths |
|
|
Lemur stemmer types |
|
|
Top level container |
|
|
|
|
|
|
1.3.4