org.annotation.wordfreak.viewer
Class Viewer

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.annotation.wordfreak.viewer.Viewer
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, AnnotationSchemeListener, EventListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, Plugin, java.io.Serializable
Direct Known Subclasses:
ConcordanceViewer, DebugViewer, TableViewer, TextViewer, TreeTableViewer, TreeViewer

public abstract class Viewer
extends javax.swing.JPanel
implements Plugin, EventListener, AnnotationSchemeListener, java.awt.event.ActionListener

Abstract component which can be extended for creating most visual displays of the source media on which annotation are being made.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  Annotation currentAnnotation
          The annotation currently being displayed.
static java.lang.String FEATURE_NAME
           
protected  java.util.List features
          The features which should be displayed to the user by this viewer.
protected  java.lang.String fontName
          The name of the font currently being used.
protected  java.util.Map groups
          A mapping from group labels to the outcomes in those groups.
static int HORIZONTAL
           
protected  java.util.List labels
          The strings used to label the features display by this viewer.
static int NONE
           
protected  java.lang.String[] outcomes
          The display values for the choices for annotation specified by the scheme.
static java.awt.Color relationColor
           
protected  AnnotationSelection selection
          The annotations which are currently selected in this viewer.
protected  java.util.List separators
          The strings used to separate the features display by this viewer.
protected  boolean showRelations
          Specifies whether or not this viewer should show relations.
protected  SortCriteria sortCriteria
          The criteria by which the annotations are sorted in the view.
protected  StatusBar statusBar
          The status bar for the viewer.
protected  int swipe
           
static int VERTICAL
           
protected  AnnotationView view
          The current view.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Viewer(java.lang.String type)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addAnnotation(Annotation a)
          Designates that the specified annotation has been added
 void addAnnotation(Annotation a, Annotation p)
           
 void addListener(ViewerListener vl)
           
 void addProperty(DynamicFeature f)
           
 void addProperty(DynamicFeature f, java.lang.String s)
           
 void addProperty(DynamicFeature f, java.lang.String l, java.lang.String s)
           
 void addProperty(java.lang.String p)
           
 void addProperty(java.lang.String p, java.lang.String s)
           
 void addStyle(java.lang.String name, javax.swing.text.AttributeSet as)
          This allows an AnnotationScheme to change the background color for a particular annotation
 void annotation(Annotation a)
          Notifies the listener to focus display the specified annotation.
 void clearAnnotationHighlights()
           
 void clearKeyMaps(javax.swing.JComponent c)
           
 boolean colorAttributeSet(Annotation a, javax.swing.text.SimpleAttributeSet as)
           
protected  void copy()
           
protected  void cut()
           
 void deflag()
          Request viewer to deflag any previously flagged attributes.
 void dispose()
           
 boolean eventTranspired(java.lang.String com, java.lang.Object source)
           
 void file(AnnotationFile af)
          Notifies the listener that the specified annotation file should be presented to the user.
 void flagSpan()
          Request viewer to indicate that the span of the current annotation should be flaged.
 void flagType()
          Request viewer to indicate that the type of the current annotation should be flaged.
 javax.swing.JPanel getContentPane()
           
 java.util.Iterator getFeaturesIterator()
           
 javax.swing.JPopupMenu getPopup()
          Returns a viewer specific popup menu.
 int getSplitType()
           
 void highlightAnnotation(Annotation a, java.awt.Color c)
           
 void makeVisible(Annotation a)
          Notifies the listener to make sure the annotation is visible
 void markOutcomes(Annotation[] outs, java.awt.Color c)
           
 void markOutcomes(java.lang.String[] outs, java.awt.Color c)
          Specifies a set of outcomes for this annotation and designates the color that should be used to disply them.
 void moveAnnotation(Annotation a)
          Designates that the specified annotation is about to be moved.
 void outcomes(java.lang.String[] codes)
          This allows an AnnotationScheme to change the outcomes presented to the user.
 void outcomes(java.lang.String[] o, java.lang.String[] c)
          This allows an AnnotationScheme to change the outcomes presented to the user.
 void outcomes(java.lang.String[] o, java.lang.String[] c, java.util.Map groups)
          This allows an AnnotationScheme to change the outcomes presented to the user.
protected  void paste(int modifiers)
           
 void progress(double p)
           
 void progress(int x, int n)
           
 void rebuild()
          Instructs the viewer to rebuild itself because the annotations have changed in arbitrary ways.
abstract  void refresh()
          Notifies the listener that annotated files have been filtered in the scheme and may need to be redisplayed
 void refresh(Annotation a)
          Notifies the listen that the specified annotation needs to be redrawn.
 void reloadedFiles()
          Notifies the listener that annotated files have been reloaded in the scheme and may have been changed in arbitrary ways.
 void removeAnnotatedFile(AnnotationFile af)
           
 void removeAnnotation(Annotation a)
          Designates that the specified annotation has been removed.
 void removeContextualMenuItems(javax.swing.JMenuItem[] menus)
           
 void removeListener(ViewerListener vl)
           
 void select(Annotation a)
          Notifies the listner that the specified annotation should be displayed as selected.
 void select(AnnotationSelection anns)
          Notifies the listener that the specified selection should be displayed as selected.
 void select(Span selectionSpan)
          Notifies the listner that the specified selection span should be displayed as selected.
 void setAnnotationStyle(Annotation a, java.lang.String name)
           
 void setAnnotationView(AnnotationView v)
          Indicates that annotations from the specified view should be processed.
 void setBackgroundColor(Annotation a, java.awt.Color c)
           
 void setClipboard(java.lang.String str)
           
 void setColorScheme(java.util.Map cs)
          Provides a mapping between outcomes and colors for display purposes.
 void setContextualMenuItems(javax.swing.JMenuItem[] menus)
           
 void setContextualMenuItems(javax.swing.JMenuItem[] menus, java.lang.String[] alt_names, int[] mods)
           
 void setFontSize(int size)
          Sets the font used by the viewer to the specified size.
 void setFontType(java.lang.String fontName)
          Set the name of the font used by the viewer to the specified font name.
 void setGuiListener(GuiListener gl)
           
 void setIcons(javax.swing.Icon[] icons)
           
 void setKeyboardComponent(java.awt.Component c)
           
 void setKeyBuffer(java.lang.String s)
           
 void setLayout(java.awt.LayoutManager lm)
           
 void setProperty(DynamicFeature f)
           
 void setProperty(DynamicFeature f, java.lang.String s)
           
 void setProperty(DynamicFeature f, java.lang.String l, java.lang.String s)
           
 void setProperty(java.lang.String p)
          Designates that the specified property should be used for displaying label information about annotations handled by the caller.
 void setProperty(java.lang.String p, java.lang.String s)
           
 void setSortCriteria(SortCriteria sortCriteria)
          Indicates that the annotations will be sorted based on the specified sort criteria.
 void showRelations(boolean b)
          Specifies whether the scheme wants relations to be displayed based on the specified parameter.
 void updateAnnotation(Annotation a)
          Designates that the specified annotation has been changed.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

features

protected java.util.List features
The features which should be displayed to the user by this viewer.


separators

protected java.util.List separators
The strings used to separate the features display by this viewer.


labels

protected java.util.List labels
The strings used to label the features display by this viewer.


selection

protected AnnotationSelection selection
The annotations which are currently selected in this viewer.


swipe

protected int swipe

outcomes

protected java.lang.String[] outcomes
The display values for the choices for annotation specified by the scheme.


showRelations

protected boolean showRelations
Specifies whether or not this viewer should show relations.


relationColor

public static final java.awt.Color relationColor

view

protected AnnotationView view
The current view.


fontName

protected java.lang.String fontName
The name of the font currently being used. This is useful for initializing componets created after the font has been set.


sortCriteria

protected SortCriteria sortCriteria
The criteria by which the annotations are sorted in the view.


currentAnnotation

protected Annotation currentAnnotation
The annotation currently being displayed.


groups

protected java.util.Map groups
A mapping from group labels to the outcomes in those groups.


FEATURE_NAME

public static final java.lang.String FEATURE_NAME
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

statusBar

protected StatusBar statusBar
The status bar for the viewer. This is typically shown at the bottom of the viewer.

Constructor Detail

Viewer

public Viewer(java.lang.String type)
Method Detail

dispose

public void dispose()

getSplitType

public int getSplitType()

getPopup

public javax.swing.JPopupMenu getPopup()
Returns a viewer specific popup menu. This is currently accessible via the status bar.

Returns:
A viewer specific popup menu or null if no such menu exists.

clearKeyMaps

public void clearKeyMaps(javax.swing.JComponent c)

setKeyboardComponent

public void setKeyboardComponent(java.awt.Component c)

setLayout

public void setLayout(java.awt.LayoutManager lm)

setColorScheme

public void setColorScheme(java.util.Map cs)
Description copied from interface: AnnotationSchemeListener
Provides a mapping between outcomes and colors for display purposes.

Specified by:
setColorScheme in interface AnnotationSchemeListener

colorAttributeSet

public boolean colorAttributeSet(Annotation a,
                                 javax.swing.text.SimpleAttributeSet as)

setProperty

public void setProperty(java.lang.String p)
Description copied from interface: AnnotationSchemeListener
Designates that the specified property should be used for displaying label information about annotations handled by the caller. By default the "type" property is used for such purposes.

Specified by:
setProperty in interface AnnotationSchemeListener
Parameters:
p - the name of the property to be used as the default label property.

setProperty

public void setProperty(java.lang.String p,
                        java.lang.String s)
Specified by:
setProperty in interface AnnotationSchemeListener

addProperty

public void addProperty(java.lang.String p)
Specified by:
addProperty in interface AnnotationSchemeListener

addProperty

public void addProperty(java.lang.String p,
                        java.lang.String s)
Specified by:
addProperty in interface AnnotationSchemeListener

setProperty

public void setProperty(DynamicFeature f)
Specified by:
setProperty in interface AnnotationSchemeListener

setProperty

public void setProperty(DynamicFeature f,
                        java.lang.String s)
Specified by:
setProperty in interface AnnotationSchemeListener

setProperty

public void setProperty(DynamicFeature f,
                        java.lang.String l,
                        java.lang.String s)
Specified by:
setProperty in interface AnnotationSchemeListener

addProperty

public void addProperty(DynamicFeature f)
Specified by:
addProperty in interface AnnotationSchemeListener

addProperty

public void addProperty(DynamicFeature f,
                        java.lang.String s)
Specified by:
addProperty in interface AnnotationSchemeListener

addProperty

public void addProperty(DynamicFeature f,
                        java.lang.String l,
                        java.lang.String s)
Specified by:
addProperty in interface AnnotationSchemeListener

getFeaturesIterator

public java.util.Iterator getFeaturesIterator()

setSortCriteria

public void setSortCriteria(SortCriteria sortCriteria)
Description copied from interface: AnnotationSchemeListener
Indicates that the annotations will be sorted based on the specified sort criteria.

Specified by:
setSortCriteria in interface AnnotationSchemeListener
Parameters:
sortCriteria -

refresh

public abstract void refresh()
Description copied from interface: AnnotationSchemeListener
Notifies the listener that annotated files have been filtered in the scheme and may need to be redisplayed

Specified by:
refresh in interface AnnotationSchemeListener

refresh

public void refresh(Annotation a)
Description copied from interface: AnnotationSchemeListener
Notifies the listen that the specified annotation needs to be redrawn.

Specified by:
refresh in interface AnnotationSchemeListener
Parameters:
a - The annotation that needs to be refreshed.

file

public void file(AnnotationFile af)
Description copied from interface: AnnotationSchemeListener
Notifies the listener that the specified annotation file should be presented to the user. This may be the file that is already displayed.

Specified by:
file in interface AnnotationSchemeListener

annotation

public void annotation(Annotation a)
Description copied from interface: AnnotationSchemeListener
Notifies the listener to focus display the specified annotation. This may be the annotation that is currently being displayed.

Specified by:
annotation in interface AnnotationSchemeListener
Parameters:
a - The annotation to be displayed.

flagType

public void flagType()
Request viewer to indicate that the type of the current annotation should be flaged. This is used during adjudication when there is a type mis-match.

See Also:
flagSpan(), deflag()

flagSpan

public void flagSpan()
Request viewer to indicate that the span of the current annotation should be flaged. This is used during adjudication when there is a span mis-match.

See Also:
flagType(), deflag()

deflag

public void deflag()
Request viewer to deflag any previously flagged attributes.

See Also:
flagType(), flagSpan()

select

public void select(Annotation a)
Description copied from interface: AnnotationSchemeListener
Notifies the listner that the specified annotation should be displayed as selected.

Specified by:
select in interface AnnotationSchemeListener
Parameters:
a - the annotation to be selected.

select

public void select(Span selectionSpan)
Description copied from interface: AnnotationSchemeListener
Notifies the listner that the specified selection span should be displayed as selected.

Specified by:
select in interface AnnotationSchemeListener
Parameters:
selectionSpan - the span to be selected.

select

public void select(AnnotationSelection anns)
Description copied from interface: AnnotationSchemeListener
Notifies the listener that the specified selection should be displayed as selected.

Specified by:
select in interface AnnotationSchemeListener
Parameters:
anns - the selection to be selected.

makeVisible

public void makeVisible(Annotation a)
Description copied from interface: AnnotationSchemeListener
Notifies the listener to make sure the annotation is visible

Specified by:
makeVisible in interface AnnotationSchemeListener
Parameters:
a - the annotation to make visible

addStyle

public void addStyle(java.lang.String name,
                     javax.swing.text.AttributeSet as)
Description copied from interface: AnnotationSchemeListener
This allows an AnnotationScheme to change the background color for a particular annotation

Specified by:
addStyle in interface AnnotationSchemeListener

setAnnotationStyle

public void setAnnotationStyle(Annotation a,
                               java.lang.String name)
Specified by:
setAnnotationStyle in interface AnnotationSchemeListener

setBackgroundColor

public void setBackgroundColor(Annotation a,
                               java.awt.Color c)
Specified by:
setBackgroundColor in interface AnnotationSchemeListener

highlightAnnotation

public void highlightAnnotation(Annotation a,
                                java.awt.Color c)
Specified by:
highlightAnnotation in interface AnnotationSchemeListener

clearAnnotationHighlights

public void clearAnnotationHighlights()
Specified by:
clearAnnotationHighlights in interface AnnotationSchemeListener

showRelations

public void showRelations(boolean b)
Description copied from interface: AnnotationSchemeListener
Specifies whether the scheme wants relations to be displayed based on the specified parameter.

Specified by:
showRelations in interface AnnotationSchemeListener
Parameters:
b - indicates that relations should or shouldn't be displayed.

updateAnnotation

public void updateAnnotation(Annotation a)
Description copied from interface: AnnotationSchemeListener
Designates that the specified annotation has been changed.

Specified by:
updateAnnotation in interface AnnotationSchemeListener
Parameters:
a - The changed annotation.

addAnnotation

public void addAnnotation(Annotation a,
                          Annotation p)
Specified by:
addAnnotation in interface AnnotationSchemeListener

addAnnotation

public void addAnnotation(Annotation a)
Description copied from interface: AnnotationSchemeListener
Designates that the specified annotation has been added

Specified by:
addAnnotation in interface AnnotationSchemeListener
Parameters:
a - The added annotation.

removeAnnotation

public void removeAnnotation(Annotation a)
Description copied from interface: AnnotationSchemeListener
Designates that the specified annotation has been removed.

Specified by:
removeAnnotation in interface AnnotationSchemeListener
Parameters:
a - The annotation which is being removed.

moveAnnotation

public void moveAnnotation(Annotation a)
Description copied from interface: AnnotationSchemeListener
Designates that the specified annotation is about to be moved.

Specified by:
moveAnnotation in interface AnnotationSchemeListener
Parameters:
a - The annotation which is being moved.

removeAnnotatedFile

public void removeAnnotatedFile(AnnotationFile af)

reloadedFiles

public void reloadedFiles()
Description copied from interface: AnnotationSchemeListener
Notifies the listener that annotated files have been reloaded in the scheme and may have been changed in arbitrary ways.

Specified by:
reloadedFiles in interface AnnotationSchemeListener

rebuild

public void rebuild()
Instructs the viewer to rebuild itself because the annotations have changed in arbitrary ways.


setAnnotationView

public void setAnnotationView(AnnotationView v)
Description copied from interface: AnnotationSchemeListener
Indicates that annotations from the specified view should be processed. If the specified view is null then there are currently no annotations to process. Typically processing entails displaying the annotations.

Specified by:
setAnnotationView in interface AnnotationSchemeListener
Parameters:
v - The current view for the scheme.

progress

public void progress(int x,
                     int n)
Specified by:
progress in interface AnnotationSchemeListener

progress

public void progress(double p)
Specified by:
progress in interface AnnotationSchemeListener

getContentPane

public javax.swing.JPanel getContentPane()

addListener

public void addListener(ViewerListener vl)

removeListener

public void removeListener(ViewerListener vl)

setGuiListener

public void setGuiListener(GuiListener gl)

setIcons

public void setIcons(javax.swing.Icon[] icons)
Specified by:
setIcons in interface AnnotationSchemeListener

outcomes

public void outcomes(java.lang.String[] codes)
Description copied from interface: AnnotationSchemeListener
This allows an AnnotationScheme to change the outcomes presented to the user.

Specified by:
outcomes in interface AnnotationSchemeListener
Parameters:
codes - The names for the outcome to be displayed to the user and used in the file..

outcomes

public void outcomes(java.lang.String[] o,
                     java.lang.String[] c)
Description copied from interface: AnnotationSchemeListener
This allows an AnnotationScheme to change the outcomes presented to the user.

Specified by:
outcomes in interface AnnotationSchemeListener
Parameters:
o - The names for the outcome to be displayed to the user.
c - The string to be stored in the file for this selection.

outcomes

public void outcomes(java.lang.String[] o,
                     java.lang.String[] c,
                     java.util.Map groups)
Description copied from interface: AnnotationSchemeListener
This allows an AnnotationScheme to change the outcomes presented to the user.

Specified by:
outcomes in interface AnnotationSchemeListener
Parameters:
o - The names for the outcome to be displayed to the user.
c - The string to be stored in the file for this selection.
groups - A mapping from group labels to a set of names for that group.

setContextualMenuItems

public void setContextualMenuItems(javax.swing.JMenuItem[] menus)
Specified by:
setContextualMenuItems in interface AnnotationSchemeListener

setContextualMenuItems

public void setContextualMenuItems(javax.swing.JMenuItem[] menus,
                                   java.lang.String[] alt_names,
                                   int[] mods)
Specified by:
setContextualMenuItems in interface AnnotationSchemeListener

removeContextualMenuItems

public void removeContextualMenuItems(javax.swing.JMenuItem[] menus)
Specified by:
removeContextualMenuItems in interface AnnotationSchemeListener

markOutcomes

public void markOutcomes(java.lang.String[] outs,
                         java.awt.Color c)
Description copied from interface: AnnotationSchemeListener
Specifies a set of outcomes for this annotation and designates the color that should be used to disply them.

Specified by:
markOutcomes in interface AnnotationSchemeListener

markOutcomes

public void markOutcomes(Annotation[] outs,
                         java.awt.Color c)
Specified by:
markOutcomes in interface AnnotationSchemeListener

setFontSize

public void setFontSize(int size)
Sets the font used by the viewer to the specified size.


setFontType

public void setFontType(java.lang.String fontName)
Set the name of the font used by the viewer to the specified font name.

Parameters:
fontName - The name of the font that the viewer should use.

cut

protected void cut()

copy

protected void copy()

paste

protected void paste(int modifiers)

setClipboard

public void setClipboard(java.lang.String str)

setKeyBuffer

public void setKeyBuffer(java.lang.String s)

actionPerformed

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

eventTranspired

public boolean eventTranspired(java.lang.String com,
                               java.lang.Object source)
Specified by:
eventTranspired in interface EventListener


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.