Class DialogPageTreeCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TreeCellRenderer

public class DialogPageTreeCellRenderer extends JLabel implements TreeCellRenderer
A tree cell renderer for AbstractDialogPage.
See Also:
  • Constructor Details

    • DialogPageTreeCellRenderer

      public DialogPageTreeCellRenderer()
      The constructor.
  • Method Details

    • getTreeCellRendererComponent

      public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getSelectedForeground

      public Color getSelectedForeground()
      Get the foreground color on selection. By default, it gets color from UIDefault, "Tree.selectionForeground".
      Returns:
      the foreground color on selection.
    • setSelectedForeground

      public void setSelectedForeground(Color selectedForeground)
      Set the foreground color on selection.
      Parameters:
      selectedForeground - the foreground color on selection
      See Also:
    • getNonSelectedForeground

      public Color getNonSelectedForeground()
      Get the foreground color without selection. By default, it gets color from UIDefault, "Tree.textForeground".
      Returns:
      the foreground color without selection.
    • setNonSelectedForeground

      public void setNonSelectedForeground(Color nonSelectedForeground)
      Set the foreground color without selection.
      Parameters:
      nonSelectedForeground - the foreground color without selection
      See Also:
    • getSelectedBackground

      public Color getSelectedBackground()
      Get the background color on selection. By default, it gets color from UIDefault, "Tree.selectionBackground".
      Returns:
      the background color on selection.
    • setSelectedBackground

      public void setSelectedBackground(Color selectedBackground)
      Set the background color on selection.
      Parameters:
      selectedBackground - the background color on selection
      See Also:
    • getNonSelectedBackground

      public Color getNonSelectedBackground()
      Get the background color without selection. By default, it gets color from UIDefault, "Tree.textBackground".
      Returns:
      the background color without selection.
    • setNonSelectedBackground

      public void setNonSelectedBackground(Color nonSelectedBackground)
      Set the background color without selection.
      Parameters:
      nonSelectedBackground - the background color without selection
      See Also:
    • getSelectedBorderColor

      public Color getSelectedBorderColor()
      Get the border color on selection. By default, it gets color from UIDefault, "Tree.selectionBorderColor".
      Returns:
      the border color on selection.
    • setSelectedBorderColor

      public void setSelectedBorderColor(Color selectedBorderColor)
      Set the border color on selection.
      Parameters:
      selectedBorderColor - the border color on selection
      See Also:
    • getSelectedIcon

      public Icon getSelectedIcon()
      Get the selected icon. If it is not configured, JIDE will create a default icon.
      Returns:
      the selected icon.
    • setSelectedIcon

      public void setSelectedIcon(Icon selectedIcon)
      Set the selected icon.
      Parameters:
      selectedIcon - the selected icon
      See Also:
    • getBlankIcon

      public Icon getBlankIcon()
      Get the blank icon. If it is not configured, JIDE will create a default icon.
      Returns:
      the blank icon.
    • setBlankIcon

      public void setBlankIcon(Icon blankIcon)
      Set the blank icon.
      Parameters:
      blankIcon - the blank icon
      See Also:
    • getOpenIcon

      public Icon getOpenIcon()
      Get the open/expand icon. By default, it gets icon from UIDefault, "Tree.openIcon".
      Returns:
      the open/expand icon.
    • setOpenIcon

      public void setOpenIcon(Icon openIcon)
      Set the open/expand icon.
      Parameters:
      openIcon - the open/expand icon
      See Also:
    • getClosedIcon

      public Icon getClosedIcon()
      Get the closed icon. By default, it gets icon from UIDefault, "Tree.closedIcon".
      Returns:
      the closed icon.
    • setClosedIcon

      public void setClosedIcon(Icon closedIcon)
      Set the closed icon.
      Parameters:
      closedIcon - the closed icon
      See Also: