edu.cmu.minorthird.text.gui
Class TextBaseViewer.HighlightAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.cmu.minorthird.text.gui.TextBaseViewer.HighlightAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
TextBaseViewer

public class TextBaseViewer.HighlightAction
extends javax.swing.AbstractAction

highlights text in the spans displayed in documentList based on the options in truthBox, guessBox

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
TextBaseViewer.HighlightAction(java.lang.String msg, javax.swing.JComboBox guessBox, javax.swing.JComboBox truthBox, javax.swing.JList documentList)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 SpanDifference.Looper differenceIterator(java.lang.String documentId)
          Find span differences associated with the document.
 javax.swing.text.AttributeSet fnColor()
          Color for false negative spans.
 javax.swing.text.AttributeSet fpColor()
          Color for false positive spans.
 javax.swing.text.AttributeSet mpColor()
          Color for spans that might be positive
 void paintDocument(java.lang.String documentId)
          Repaint the specified document.
 javax.swing.text.AttributeSet tpColor()
          Color for true positive spans.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBaseViewer.HighlightAction

public TextBaseViewer.HighlightAction(java.lang.String msg,
                                      javax.swing.JComboBox guessBox,
                                      javax.swing.JComboBox truthBox,
                                      javax.swing.JList documentList)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

paintDocument

public void paintDocument(java.lang.String documentId)
Repaint the specified document. Null means to repaint all documents.


fpColor

public javax.swing.text.AttributeSet fpColor()
Color for false positive spans.


fnColor

public javax.swing.text.AttributeSet fnColor()
Color for false negative spans.


tpColor

public javax.swing.text.AttributeSet tpColor()
Color for true positive spans.


mpColor

public javax.swing.text.AttributeSet mpColor()
Color for spans that might be positive


differenceIterator

public SpanDifference.Looper differenceIterator(java.lang.String documentId)
Find span differences associated with the document.