Package hec.gfx2d

Class LayoutPlotDialog.PlotTreeCellRenderer

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

public class LayoutPlotDialog.PlotTreeCellRenderer extends DefaultTreeCellRenderer
See Also:
  • Constructor Details

    • PlotTreeCellRenderer

      public PlotTreeCellRenderer()
  • 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. 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 on leaf and expanded.
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
      Overrides:
      getTreeCellRendererComponent in class DefaultTreeCellRenderer