Class JobRenderer

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

public class JobRenderer extends AbstractTreeCellRenderer
Renderer used to render the tree nodes in the job data panel.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JobRenderer

      public JobRenderer()
  • Method Details

    • getTreeCellRendererComponent

      public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Configures the renderer based on the passed in components.
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
      Overrides:
      getTreeCellRendererComponent in class DefaultTreeCellRenderer
      Parameters:
      tree - the tree of which to apply this renderer.
      value - the node to render.
      sel - determines whether the node is selected.
      expanded - determines whether the node is expanded.
      leaf - determines whether the node is a leaf.
      row - the node's row number.
      hasFocus - determines whether the node has the focus.
      Returns:
      a component used to paint the node.