Class AbstractTreeCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TreeCellRenderer
Direct Known Subclasses:
HealthTreeCellRenderer, JobRenderer, NodeRenderer

public abstract class AbstractTreeCellRenderer extends DefaultTreeCellRenderer
Renderer used to render the tree nodes in the node data panel.
Author:
Laurent Cohen
See Also:
  • Field Details

    • BOOL_VALUES

      public static final boolean[] BOOL_VALUES
      The possibl boolean values.
    • RESOURCES

      public static final String RESOURCES
      Path to the location of the icon files.
      See Also:
    • DRIVER_ICON

      public static final String DRIVER_ICON
      Path to the icon used for a driver.
      See Also:
    • DRIVER_INACTIVE_ICON

      public static final String DRIVER_INACTIVE_ICON
      Path to the icon used for an inactive driver connection.
      See Also:
    • NODE_ICON

      public static final String NODE_ICON
      Path to the icon used for a non-master node.
      See Also:
    • MARKER_MASTER_ICON

      public static final String MARKER_MASTER_ICON
      Path to the marker icon used for a master node.
      See Also:
    • MARKER_DOTNET_ICON

      public static final String MARKER_DOTNET_ICON
      Path to the marker icon used for a .Net-capable node.
      See Also:
    • MARKER_PENDING_SHUTDOWN_ICON

      public static final String MARKER_PENDING_SHUTDOWN_ICON
      Path to the marker icon used for a node that has a pending shutdown.
      See Also:
    • MARKER_PENDING_RESTART_ICON

      public static final String MARKER_PENDING_RESTART_ICON
      Path to the marker icon used for a node that has a pending restart.
      See Also:
    • NODE_MASTER_ICON

      public static final String NODE_MASTER_ICON
      Path to the icon used for a master node.
      See Also:
    • NODE_DOTNET_ICON

      public static final String NODE_DOTNET_ICON
      Path to the icon used for a non-master node with .Net bridge.
      See Also:
    • NODE_MASTER_DOTNET_ICON

      public static final String NODE_MASTER_DOTNET_ICON
      Path to the icon used for a master node with .Net bridge.
      See Also:
    • JOB_ICON

      public static final String JOB_ICON
      Path to the icon used for a job.
      See Also:
    • CRITICAL_ICON

      public static final String CRITICAL_ICON
      Critical icon.
      See Also:
    • ACTIVE_COLOR

      public static final Color ACTIVE_COLOR
      Highlighting color for active driver connections.
    • INACTIVE_COLOR

      public static final Color INACTIVE_COLOR
      Highlighting color for non-selected inactive driver connections.
    • INACTIVE_SELECTION_COLOR

      public static final Color INACTIVE_SELECTION_COLOR
      Highlighting color for selected inactive driver connections.
    • SUSPENDED_COLOR

      public static final Color SUSPENDED_COLOR
      Highlighting color for non-selected suspended jobs.
    • DEFAULT_FOREGROUND

      public static final Color DEFAULT_FOREGROUND
      Default foreground color.
    • DEFAULT_SELECTION_FOREGROUND

      public static final Color DEFAULT_SELECTION_FOREGROUND
      Default selection foreground color.
    • DEFAULT_BACKGROUND

      public static final Color DEFAULT_BACKGROUND
      Default background color.
    • DEFAULT_SELECTION_BACKGROUND

      public static final Color DEFAULT_SELECTION_BACKGROUND
      Default selection background color.
    • DIMMED_FOREGROUND

      public static final Color DIMMED_FOREGROUND
      Default foreground color.
    • UNMANAGED_COLOR

      public static final Color UNMANAGED_COLOR
      Foreground color for non-managed nodes.
    • defaultNonSelectionBackground

      protected Color defaultNonSelectionBackground
      Default non-selection background.
    • defaultSelectionBackground

      protected Color defaultSelectionBackground
      Default selection background.
    • defaultSelectionForeground

      protected Color defaultSelectionForeground
      Default selection background.
    • plainFont

      protected static Font plainFont
      The default plain font.
    • italicFont

      protected static Font italicFont
      The default italic font.
    • boldFont

      protected static Font boldFont
      The default bold font.
    • boldItalicFont

      protected static Font boldItalicFont
      The default bold and italic font.
  • Constructor Details

    • AbstractTreeCellRenderer

      public AbstractTreeCellRenderer()
      Default constructor.
  • Method Details

    • getPlainFont

      public static Font getPlainFont(Font font)
      Get the default plain font.
      Parameters:
      font - the font to base the result on.
      Returns:
      a Font instance.
    • getItalicFont

      public static Font getItalicFont(Font font)
      Get the default italic font.
      Parameters:
      font - the font to base the result on.
      Returns:
      a Font instance.
    • getBoldFont

      public static Font getBoldFont(Font font)
      Get the default bold font.
      Parameters:
      font - the font to base the result on.
      Returns:
      a Font instance.
    • getBoldItalicFont

      public static Font getBoldItalicFont(Font font)
      Get the default bold and italic font.
      Parameters:
      font - the font to base the result on.
      Returns:
      a Font instance.
    • isShowIP

      protected static boolean isShowIP()
      Determine whether IP addresses or host names are displayed.
      Returns:
      true if IP addresses are displayed, false otherwise.