Module jEdit

Class OptionsDialog.PaneNameRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TreeCellRenderer
Enclosing class:
OptionsDialog

public static class OptionsDialog.PaneNameRenderer extends EnhancedTreeCellRenderer
See Also:
  • Constructor Details

    • PaneNameRenderer

      public PaneNameRenderer()
  • Method Details

    • newInstance

      protected TreeCellRenderer newInstance()
      Description copied from class: EnhancedTreeCellRenderer
      Creates a new instance of the tree cell renderer. Each invocation has to return a different object. Saving a reference and returning the same instance from different calls of this method is not appropriate.

      Any one-time initializations that are necessary and are not made in the constructor should be made in this method. The simplest implementation of this method will just call the constructor and return the result.

      This is an instance method so that the new instance can be set up with information from the current instance.

      Specified by:
      newInstance in class EnhancedTreeCellRenderer
      Returns:
      a new readily initialized instance of this class
    • configureTreeCellRendererComponent

      protected void configureTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Description copied from class: EnhancedTreeCellRenderer
      Configures this instance of the renderer component based on the passed in components. The value is set from messaging the tree with convertValueToText, which ultimately invokes toString on value. The foreground color is set based on the selection and the icon is set based on the leaf and expanded parameters. The parameters of this method are the same as the ones of EnhancedTreeCellRenderer.getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean).
      Specified by:
      configureTreeCellRendererComponent in class EnhancedTreeCellRenderer
      Parameters:
      tree - The tree in which this renderer component is used currently
      value - The value to be displayed for the tree cell to be rendered
      selected - Whether the tree cell to be rendered is selected
      expanded - Whether the tree cell to be rendered is expanded
      leaf - Whether the tree cell to be rendered is a leaf
      row - The row index of the tree cell to be rendered
      hasFocus - Whether the tree cell to be rendered has the focus