Public Member Functions | |
RetUI () | |
void | init () |
void | actionPerformed (ActionEvent e) |
void | removeIndex () |
void | openIndex () |
void | openServer () |
void | runQuestion () |
void | altgetDocText () |
void | getDocText () |
void | getDocHtml () |
void | error (String s) |
Static Public Member Functions | |
void | main (String[] args) |
Static Protected Member Functions | |
ImageIcon | createImageIcon (String path) |
Package Attributes | |
JButton | go |
JButton | stop |
JButton | scoreDisplay |
JLabel | status |
JLabel | progress |
JTextField | query |
JTextField | numDocs |
JTable | answerAll |
JFrame | docTextFrame |
JTextPane | docTextPane |
JFrame | docHtmlFrame |
JTextPane | docHtmlPane |
JTree | docQueryTree |
QueryEnvironment | env |
Map | annotations = null |
QueryAnnotation | results = null |
ScoredExtentResult[] | scored = null |
ParsedDocument | currentParsedDoc = null |
int | currentDocId = 0 |
String[] | names = null |
String[] | titles = null |
int[] | docids = null |
int | currentDoc = -1 |
int | maxDocs = 10 |
boolean | envInit = false |
String | wordProg |
String | powerpointProg |
String | acroreadProg |
boolean | showScores = false |
volatile Thread | getDocTextThread |
volatile Thread | getDocHtmlThread |
volatile Thread | runQuestionThread |
Private Member Functions | |
void | clearAll () |
void | setPaths () |
void | makeHelp () |
void | makeDocTextFrame () |
void | makeDocHtmlFrame () |
void | spawnViewer () |
void | highlight (DefaultMutableTreeNode query) throws InterruptedException |
void | clearHighlight (StyledDocument myDoc, MutableAttributeSet highlight) |
void | highlight (UIQueryNode q, StyledDocument myDoc, MutableAttributeSet highlight) throws InterruptedException |
DefaultTreeModel | makeTreeModel (QueryAnnotationNode query) |
DefaultMutableTreeNode | makeChildNode (QueryAnnotationNode query) |
Thread | blinker (final String s1, final String s2) |
String | trim (String s) |
JTable | makeDocsTable () |
JMenuItem | makeMenuItem (String label) |
Static Private Member Functions | |
void | createAndShowGUI () |
Private Attributes | |
final JFileChooser | fc |
JFrame | helpFrame |
JList | documents |
DefaultListModel | documentsModel |
JList | indexes |
DefaultListModel | indexesModel |
volatile boolean | blinking = false |
Static Private Attributes | |
final String | aboutText |
final String | helpFile = "properties/IndriRetrieval.html" |
final String | iconFile = "properties/lemur_head_32.gif" |
final Color | lightYellow = new Color(255, 255, 224) |
final Color | navyBlue = new Color(0, 0, 128) |
final Color | linen = new Color(250, 240, 230) |
Cursor | wait = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) |
Cursor | def = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) |
|
Initialize the query environment and indexes model. |
|
|
|
Populate the document text frame with the selected document. Highlight the document based on query matches. |
|
Blink a pair of messages on the status line
|
|
Clear everything |
|
Clear all highlighting markup in a styled document.
|
|
Make the containing frame, menubar, and an instance of RetUI. Initialize. |
|
Returns an ImageIcon, or null if the path was invalid.
|
|
Display an error message in the progress label.
|
|
Populate a document text frame with html -- no highlighting. |
|
|
|
Highlight the current document in the document text pane with respect to the given query node.
|
|
Insert highlighting markup into a styled document, starting from the given node of the query tree. If the node is the root of the tree, recurse through the entire tree.
|
|
Create the gui elements, including the help frame. |
|
Fire it up.
|
|
Make a DefaultMutableTreeNode out of a QueryAnnotationNode. Recursively insert all children of the query into the tree.
|
|
Make the frame for displaying html documents |
|
Make a JTable and associated DocsTableModel for containing query result sets.
|
|
Make the frame for displaying highlighted retrieved documents with both document text and the query tree. |
|
Create the frame that shows the help file and render the html. Saves time when the user opens the help. |
|
Make a menu item with appropriate colors and |
|
Create a TreeModel from a QueryAnnotationNode.
|
|
Present a file chooser to select an index to open. Open the index in the query environment. |
|
Present an input dialog to obtain a hostname and optional port number. Open the given server in the query environment. |
|
Remove the selected index from the list. |
|
Run the given query in a separate thread. |
|
Set the paths to the external viewer programs |
|
Spawn an external viewer for pdf, doc, or ppt (Win only) |
|
Strip leading pathname, if any. |
|
Initial value: "Indri Retrieval UI 1.0\n" + "Copyright (c) 2004 University of Massachusetts\n" |
|
external viewers Acrobat.exe or AcroRd32.exe |
|
Map containing query annotations for highlighting. |
|
Retrieved documents table |
|
Semaphore for the blinker thread |
|
Index into result holders for the current document |
|
Result holder for currently selected document id |
|
Result holder for parsed documents |
|
cursors |
|
Frame for showing document html document |
|
Document html pane. |
|
Result holder for document internal ids |
|
Query tree display |
|
Frame for showing document text and query tree. |
|
Document text pane. |
|
Enable multiple indexes |
|
hold the file names |
|
Indri query environment for retrieval. |
|
Flag for whether or not the query environment has been initialized. |
|
Initial value: new JFileChooser(System.getProperties().getProperty("user.dir")) |
|
getDocHtml Thread |
|
getDocText Thread |
|
Search and Clear buttons |
|
Help file for the application |
|
Frame for help window |
|
Little lemur icon |
|
Enable multiple indexes |
|
hold the file names |
|
colors |
|
colors |
|
Maximum number of documents to retrieve for a query |
|
Result holder for document external ids |
|
colors |
|
Number of documents to retrieve input |
|
external viewers Powerpnt.exe |
|
Progress indicator output |
|
Query input |
|
Result holder for query retrieval. |
|
runQuestion Thread |
|
Result holder for document scored extents |
|
Search and Clear buttons |
|
Are we showing scores? |
|
Status line output |
|
Search and Clear buttons |
|
Result holder for document titles |
|
cursors |
|
external viewers Word.exe |