Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class OME.TreeView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--com.sun.java.swing.JComponent
                    |
                    +--com.sun.java.swing.JPanel
                          |
                          +--OME.TreeView

public class TreeView
extends com.sun.java.swing.JPanel
A tree view. It is a self contained tree view class with creating, displaying and editing funcitonalities.

See Also:
TreeViewCanvas, Serialized Form

Inner classes inherited from class com.sun.java.swing.JPanel
com.sun.java.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class com.sun.java.swing.JComponent
com.sun.java.swing.JComponent.AccessibleJComponent
 
Field Summary
com.sun.java.swing.tree.DefaultMutableTreeNode rootNode
           
com.sun.java.swing.tree.DefaultTreeModel treeModel
           
com.sun.java.swing.JTree tree
           
 
Fields inherited from class com.sun.java.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
 
Constructor Summary
TreeView(OME.GraphicViewCanvas gvc)
          Construct a tree view.
 
Method Summary
com.sun.java.swing.tree.DefaultMutableTreeNode addObject(java.lang.Object child)
          Add child to the currently selected node.
com.sun.java.swing.tree.DefaultMutableTreeNode addObject(com.sun.java.swing.tree.DefaultMutableTreeNode parent, java.lang.Object child)
          Add child to the currently selected node.
com.sun.java.swing.tree.DefaultMutableTreeNode addObject(com.sun.java.swing.tree.DefaultMutableTreeNode parent, java.lang.Object child, boolean shouldBeVisible)
          Add child to the currently selected node.
void clear()
          Removes all nodes except the root node.
com.sun.java.swing.tree.DefaultMutableTreeNode contain(java.lang.Object node)
          Tests whether a node is contained in the tree.
void removeCurrentNode()
          Removes the currently selected nodes.
 
Methods inherited from class com.sun.java.swing.JPanel
getAccessibleContext, getUIClassID, updateUI
 
Methods inherited from class com.sun.java.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paint, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, paramString, preferredSize, printComponents, print, processContainerEvent, processEvent, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

rootNode

protected com.sun.java.swing.tree.DefaultMutableTreeNode rootNode

treeModel

protected com.sun.java.swing.tree.DefaultTreeModel treeModel

tree

protected com.sun.java.swing.JTree tree
Constructor Detail

TreeView

public TreeView(OME.GraphicViewCanvas gvc)
Construct a tree view.
Parameters:
gvc - The GraphicViewCanvas which the tree view belongs to.
Method Detail

clear

public void clear()
Removes all nodes except the root node.

removeCurrentNode

public void removeCurrentNode()
Removes the currently selected nodes.

addObject

public com.sun.java.swing.tree.DefaultMutableTreeNode addObject(java.lang.Object child)
Add child to the currently selected node.
Parameters:
child - The node to be added.

addObject

public com.sun.java.swing.tree.DefaultMutableTreeNode addObject(com.sun.java.swing.tree.DefaultMutableTreeNode parent,
                                        java.lang.Object child)
Add child to the currently selected node.
Parameters:
child - The node to be added.
parent - The node under which a child node is to be added.

addObject

public com.sun.java.swing.tree.DefaultMutableTreeNode addObject(com.sun.java.swing.tree.DefaultMutableTreeNode parent,
                                        java.lang.Object child,
                                        boolean shouldBeVisible)
Add child to the currently selected node.
Parameters:
child - The node to be added.
parent - The node under which a child node is to be added.
shouldBeVisible - A flag indicating whether the node should be visible.

contain

public com.sun.java.swing.tree.DefaultMutableTreeNode contain(java.lang.Object node)
Tests whether a node is contained in the tree.
Parameters:
node - The node to be tested.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD