Class DisplayTree

All Implemented Interfaces:
DragGestureListener, DragSourceListener, DropTargetListener, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, Scrollable

public class DisplayTree extends DndTree implements ActionListener
Class DisplayTree Gives a tree gui for editing bundles
Version:
$Revision: 1.11 $
Author:
IDV Development Team
See Also:
  • Constructor Details

    • DisplayTree

      public DisplayTree(MultiDisplayHolder displayControl)
      Create the tree with the given bundle type
      Parameters:
      displayControl - The display control
  • Method Details

    • getDisplayControl

      public MultiDisplayHolder getDisplayControl()
      Get the display control
      Returns:
      the display control
    • close

      public void close()
      Close the window
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Handle the action
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      ae - The action
    • show

      public void show(Component src)
      Show the window
      Parameters:
      src - The component to show me near
    • okToDrag

      protected boolean okToDrag(DefaultMutableTreeNode sourceNode)
      Ok to drag the node
      Overrides:
      okToDrag in class DndTree
      Parameters:
      sourceNode - The node to drag
      Returns:
      Ok to drag
    • okToDrop

      protected boolean okToDrop(DefaultMutableTreeNode sourceNode, DefaultMutableTreeNode destNode, boolean isOn)
      Ok to drop the node
      Overrides:
      okToDrop in class DndTree
      Parameters:
      sourceNode - The dragged node
      destNode - Where to drop
      isOn - Is the drop right on a node
      Returns:
      Ok to drop
    • doDrop

      protected void doDrop(DefaultMutableTreeNode sourceNode, DefaultMutableTreeNode destNode, boolean isOn)
      Handle the DND drop
      Overrides:
      doDrop in class DndTree
      Parameters:
      sourceNode - The dragged node
      destNode - Where to drop
      isOn - Is the drop right on a node
    • deleteSelected

      public void deleteSelected()
      Delete the selected item in the tree
    • recurse

      protected void recurse(DisplayGroup displayGroup, ucar.unidata.idv.control.multi.DisplayTree.MyTreeNode treeNode)
      Create the tree recursively
      Parameters:
      displayGroup - The group to recurse on
      treeNode - The corresponding tree node
    • loadComponents

      protected void loadComponents()
      Load in the bundles into the tree