|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.annotation.wordfreak.viewer.Viewer
org.annotation.wordfreak.viewer.TreeViewer
Displays annotations in a tree layout. This is most useful for annotation which have an inherient tree structure.
| 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 | |
static java.lang.String |
MOVE_DOWN
|
static java.lang.String |
MOVE_UP
|
| Fields inherited from class org.annotation.wordfreak.viewer.Viewer |
currentAnnotation, FEATURE_NAME, features, fontName, groups, HORIZONTAL, labels, NONE, outcomes, relationColor, selection, separators, showRelations, sortCriteria, statusBar, swipe, VERTICAL, 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 | |
TreeViewer(java.lang.String type)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
adjustSelectionLeft()
|
void |
adjustSelectionRight()
|
void |
annotation(Annotation a)
Notifies the listener to focus display the specified annotation. |
void |
collapseAll(javax.swing.tree.TreePath path)
|
void |
copy()
|
void |
cut()
|
void |
dispose()
|
void |
doDrop(javax.swing.tree.TreeNode child,
javax.swing.tree.TreeNode newParent,
javax.swing.tree.TreeNode oldParent)
|
void |
doLink(javax.swing.tree.TreeNode source,
javax.swing.tree.TreeNode target,
int modifiers)
|
void |
expandAll()
|
void |
expandAll(javax.swing.tree.TreePath path)
|
static java.lang.String[] |
getNames()
|
javax.swing.JPopupMenu |
getPopup()
Returns a viewer specific popup menu. |
java.lang.String |
getTreeTextFromSelection()
|
boolean |
hasPopup()
|
void |
hotKeyPressed(java.lang.String name)
Indicates that the hot key with the specified name has been pressed. |
boolean |
isValidDrop(javax.swing.tree.TreeNode childNode,
javax.swing.tree.TreeNode newParentNode,
javax.swing.tree.TreeNode oldParentNode)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
makeVisible(Annotation a)
Notifies the listener to make sure the annotation is visible |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
protected void |
paste(int modifiers)
|
void |
rebuild()
Instructs the viewer to rebuild itself because the annotations have changed in arbitrary ways. |
void |
refresh()
Notifies the listener that annotated files have been filtered in the scheme and may need to be redisplayed |
void |
reloadedFiles()
Notifies the listener that annotated files have been reloaded in the scheme and may have been changed in arbitrary ways. |
void |
select(Annotation ann)
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 |
setAnnotationView(AnnotationView v)
Indicates that annotations from the specified view should be processed. |
void |
setColorScheme(java.util.Map cs)
Provides a mapping between outcomes and colors for display purposes. |
void |
setFontSize(int size)
Sets the font used by the viewer to the specified size. |
void |
setFontType(java.lang.String type)
Set the name of the font used by the viewer to the specified font name. |
protected void |
showSelection()
|
protected void |
toggleIcons()
|
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent e)
|
void |
treeExpanded(javax.swing.event.TreeExpansionEvent e)
|
void |
treeNodesChanged(javax.swing.event.TreeModelEvent e)
|
void |
treeNodesInserted(javax.swing.event.TreeModelEvent e)
|
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent e)
|
void |
treeStructureChanged(javax.swing.event.TreeModelEvent e)
|
void |
updateAnnotation(Annotation a)
Designates that the specified annotation has been changed. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent event)
|
| 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 |
| Methods inherited from interface org.annotation.gui.DragAndDropTreeListener |
setClipboard |
| Field Detail |
public static final java.lang.String MOVE_UP
public static final java.lang.String MOVE_DOWN
| Constructor Detail |
public TreeViewer(java.lang.String type)
| Method Detail |
public void hotKeyPressed(java.lang.String name)
WordFreakKeyboardFocusManager.HotKeyListener
hotKeyPressed in interface WordFreakKeyboardFocusManager.HotKeyListenername - The name of the hot key.public void keyPressed(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void keyTyped(java.awt.event.KeyEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic static java.lang.String[] getNames()
public boolean hasPopup()
public javax.swing.JPopupMenu getPopup()
Viewer
getPopup in class Viewerpublic void rebuild()
Viewer
rebuild in class Viewerpublic void refresh()
AnnotationSchemeListener
refresh in interface AnnotationSchemeListenerrefresh in class Viewerpublic void setAnnotationView(AnnotationView v)
AnnotationSchemeListenernull then there are currently no annotations to process.
Typically processing entails displaying the annotations.
setAnnotationView in interface AnnotationSchemeListenersetAnnotationView in class Viewerpublic void dispose()
dispose in class Viewerpublic void annotation(Annotation a)
AnnotationSchemeListener
annotation in interface AnnotationSchemeListenerannotation in class Viewerpublic void makeVisible(Annotation a)
AnnotationSchemeListener
makeVisible in interface AnnotationSchemeListenermakeVisible in class Viewerpublic void select(Annotation ann)
AnnotationSchemeListener
select in interface AnnotationSchemeListenerselect in class Viewerpublic void select(AnnotationSelection anns)
AnnotationSchemeListener
select in interface AnnotationSchemeListenerselect in class Viewerpublic void setColorScheme(java.util.Map cs)
AnnotationSchemeListener
setColorScheme in interface AnnotationSchemeListenersetColorScheme in class Viewerpublic void setFontType(java.lang.String type)
Viewer
setFontType in class Viewertype - The name of the font that the viewer should use.public void setFontSize(int size)
Viewer
setFontSize in class Viewerprotected void toggleIcons()
protected void showSelection()
public void cut()
cut in class Viewerpublic void copy()
copy in class Viewerprotected void paste(int modifiers)
paste in class Viewerpublic java.lang.String getTreeTextFromSelection()
getTreeTextFromSelection in interface DragAndDropTreeListener
public boolean isValidDrop(javax.swing.tree.TreeNode childNode,
javax.swing.tree.TreeNode newParentNode,
javax.swing.tree.TreeNode oldParentNode)
isValidDrop in interface DragAndDropTreeListener
public void doLink(javax.swing.tree.TreeNode source,
javax.swing.tree.TreeNode target,
int modifiers)
doLink in interface DragAndDropTreeListener
public void doDrop(javax.swing.tree.TreeNode child,
javax.swing.tree.TreeNode newParent,
javax.swing.tree.TreeNode oldParent)
doDrop in interface DragAndDropTreeListenerpublic void updateAnnotation(Annotation a)
AnnotationSchemeListener
updateAnnotation in interface AnnotationSchemeListenerupdateAnnotation in class Viewerpublic void reloadedFiles()
AnnotationSchemeListener
reloadedFiles in interface AnnotationSchemeListenerreloadedFiles in class Viewerpublic void expandAll()
public void expandAll(javax.swing.tree.TreePath path)
public void collapseAll(javax.swing.tree.TreePath path)
public void treeExpanded(javax.swing.event.TreeExpansionEvent e)
treeExpanded in interface javax.swing.event.TreeExpansionListenerpublic void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
treeCollapsed in interface javax.swing.event.TreeExpansionListenerpublic void adjustSelectionLeft()
public void adjustSelectionRight()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class Viewerpublic void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged in interface javax.swing.event.TreeSelectionListenerpublic void treeNodesInserted(javax.swing.event.TreeModelEvent e)
treeNodesInserted in interface javax.swing.event.TreeModelListenerpublic void treeStructureChanged(javax.swing.event.TreeModelEvent e)
treeStructureChanged in interface javax.swing.event.TreeModelListenerpublic void treeNodesChanged(javax.swing.event.TreeModelEvent e)
treeNodesChanged in interface javax.swing.event.TreeModelListenerpublic void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
treeNodesRemoved in interface javax.swing.event.TreeModelListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||