edu.uchsc.ccp.knowtator.ui
Class AnnotationSchemaMenuItemFactory

java.lang.Object
  extended by edu.uchsc.ccp.knowtator.ui.AnnotationSchemaMenuItemFactory

public class AnnotationSchemaMenuItemFactory
extends Object


Field Summary
static int SELECTION_ITEMS_COUNT_THRESHOLD
           
 
Constructor Summary
AnnotationSchemaMenuItemFactory()
           
 
Method Summary
static JMenuItem createAnnotationMenuItem(KnowtatorManager manager, Frame selectedFrame, TextSourceUtil textSourceUtil)
           
static JMenuItem createFastAnnotateMenuItem(KnowtatorManager manager, Frame selectedFrame)
           
static JMenuItem createRemoveClsFromToolbarMenuItem(KnowtatorManager manager, Frame selectedFrame)
          Creates and returns the menu item that will remove the selected class (button) from the fast annotation toolbar.
static List<JMenuItem> createSelectAnnotationMenuItems(KnowtatorManager manager, Frame selectedFrame, Component parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTION_ITEMS_COUNT_THRESHOLD

public static final int SELECTION_ITEMS_COUNT_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

AnnotationSchemaMenuItemFactory

public AnnotationSchemaMenuItemFactory()
Method Detail

createAnnotationMenuItem

public static JMenuItem createAnnotationMenuItem(KnowtatorManager manager,
                                                 Frame selectedFrame,
                                                 TextSourceUtil textSourceUtil)

createFastAnnotateMenuItem

public static JMenuItem createFastAnnotateMenuItem(KnowtatorManager manager,
                                                   Frame selectedFrame)

createRemoveClsFromToolbarMenuItem

public static JMenuItem createRemoveClsFromToolbarMenuItem(KnowtatorManager manager,
                                                           Frame selectedFrame)
Creates and returns the menu item that will remove the selected class (button) from the fast annotation toolbar.

Parameters:
manager -
selectedFrame - The class that will be removed from the fast annotate toolbar.
Returns:
The menu item that will remove the class from the toolbar

createSelectAnnotationMenuItems

public static List<JMenuItem> createSelectAnnotationMenuItems(KnowtatorManager manager,
                                                              Frame selectedFrame,
                                                              Component parent)