|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.annotation.wordfreak.viewer.Viewer org.annotation.wordfreak.viewer.TreeTableViewer
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 | |
TreeTableViewer(java.lang.String type)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addProperty(DynamicFeature f,
java.lang.String l,
java.lang.String s)
|
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 |
treeShouldExpand(javax.swing.event.TreeModelEvent e)
Indicates that the node indicated by the specifed event should be expanded. |
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 |
Field Detail |
public static final java.lang.String MOVE_UP
public static final java.lang.String MOVE_DOWN
Constructor Detail |
public TreeTableViewer(java.lang.String type)
Method Detail |
public void addProperty(DynamicFeature f, java.lang.String l, java.lang.String s)
addProperty
in interface AnnotationSchemeListener
addProperty
in class Viewer
public void hotKeyPressed(java.lang.String name)
WordFreakKeyboardFocusManager.HotKeyListener
hotKeyPressed
in interface WordFreakKeyboardFocusManager.HotKeyListener
name
- 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.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public static java.lang.String[] getNames()
public boolean hasPopup()
public javax.swing.JPopupMenu getPopup()
Viewer
getPopup
in class Viewer
public void rebuild()
Viewer
rebuild
in class Viewer
public void refresh()
AnnotationSchemeListener
refresh
in interface AnnotationSchemeListener
refresh
in class Viewer
public void setAnnotationView(AnnotationView v)
AnnotationSchemeListener
null
then there are currently no annotations to process.
Typically processing entails displaying the annotations.
setAnnotationView
in interface AnnotationSchemeListener
setAnnotationView
in class Viewer
public void dispose()
dispose
in class Viewer
public void annotation(Annotation a)
AnnotationSchemeListener
annotation
in interface AnnotationSchemeListener
annotation
in class Viewer
public void makeVisible(Annotation a)
AnnotationSchemeListener
makeVisible
in interface AnnotationSchemeListener
makeVisible
in class Viewer
public void select(Annotation ann)
AnnotationSchemeListener
select
in interface AnnotationSchemeListener
select
in class Viewer
public void select(AnnotationSelection anns)
AnnotationSchemeListener
select
in interface AnnotationSchemeListener
select
in class Viewer
public void setColorScheme(java.util.Map cs)
AnnotationSchemeListener
setColorScheme
in interface AnnotationSchemeListener
setColorScheme
in class Viewer
public void setFontType(java.lang.String type)
Viewer
setFontType
in class Viewer
type
- The name of the font that the viewer should use.public void setFontSize(int size)
Viewer
setFontSize
in class Viewer
protected void toggleIcons()
protected void showSelection()
public void cut()
cut
in class Viewer
public void copy()
copy
in class Viewer
protected void paste(int modifiers)
paste
in class Viewer
public java.lang.String getTreeTextFromSelection()
public boolean isValidDrop(javax.swing.tree.TreeNode childNode, javax.swing.tree.TreeNode newParentNode, javax.swing.tree.TreeNode oldParentNode)
public void doLink(javax.swing.tree.TreeNode source, javax.swing.tree.TreeNode target, int modifiers)
public void doDrop(javax.swing.tree.TreeNode child, javax.swing.tree.TreeNode newParent, javax.swing.tree.TreeNode oldParent)
public void updateAnnotation(Annotation a)
AnnotationSchemeListener
updateAnnotation
in interface AnnotationSchemeListener
updateAnnotation
in class Viewer
public void reloadedFiles()
AnnotationSchemeListener
reloadedFiles
in interface AnnotationSchemeListener
reloadedFiles
in class Viewer
public 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.TreeExpansionListener
public void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
public void adjustSelectionLeft()
public void adjustSelectionRight()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class Viewer
public void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
treeNodesInserted
in interface javax.swing.event.TreeModelListener
public void treeShouldExpand(javax.swing.event.TreeModelEvent e)
DynamicFeatureTreeTableModel.TreeShouldExpandListener
treeShouldExpand
in interface DynamicFeatureTreeTableModel.TreeShouldExpandListener
e
- The tree event which caused this notification.public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
treeStructureChanged
in interface javax.swing.event.TreeModelListener
public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
treeNodesChanged
in interface javax.swing.event.TreeModelListener
public 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 |