Class XMLTree

java.lang.Object
org.opensourcephysics.controls.XMLTree

public class XMLTree extends Object
This is an XML tree in a scroller.
Author:
Douglas Brown
  • Field Details

  • Constructor Details

    • XMLTree

      public XMLTree(XMLControl control)
      Constructs a tree view of an XMLControl
      Parameters:
      control - the XMLControl
  • Method Details

    • getTree

      public JTree getTree()
      Gets the tree.
      Returns:
      the tree
    • getSelectedProperties

      public List<XMLProperty> getSelectedProperties()
      Gets the selected xml properties.
      Returns:
      a list of currently selected properties
    • getScrollPane

      public JScrollPane getScrollPane()
      Gets the scroll pane with view of the tree
      Returns:
      the scroll pane
    • setHighlightedClass

      public void setHighlightedClass(Class<?> type)
      Sets the highlighted class.
      Parameters:
      type - the class to highlight
    • getHighlightedClass

      public Class<?> getHighlightedClass()
      Gets the highlighted class.
      Returns:
      the highlighted class
    • selectHighlightedProperties

      public void selectHighlightedProperties()
      Selects the highlighted properties.
    • showHighlightedProperties

      public void showHighlightedProperties()
      Shows the highlighted properties.
    • createGUI

      protected void createGUI()
      Creates the GUI and listeners.