Class MixedTreeCellRenderer

  • All Implemented Interfaces:
    javax.swing.tree.TreeCellRenderer

    public class MixedTreeCellRenderer
    extends java.lang.Object
    implements javax.swing.tree.TreeCellRenderer
    DOCUMENT ME!
    Version:
    1.0
    Author:
    Andreas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.tree.TreeCellRenderer defaultRenderer  
      protected java.util.Map<java.lang.Class<?>,​javax.swing.tree.TreeCellRenderer> renderers  
    • Constructor Summary

      Constructors 
      Constructor Description
      MixedTreeCellRenderer​(javax.swing.tree.TreeCellRenderer defaultRenderer)
      Creates new Template
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.tree.TreeCellRenderer findRenderer​(java.lang.Class<?> c)  
      java.awt.Component getTreeCellRendererComponent​(javax.swing.JTree jTree, java.lang.Object obj, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)  
      void putRenderer​(java.lang.Object o, javax.swing.tree.TreeCellRenderer r)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • renderers

        protected java.util.Map<java.lang.Class<?>,​javax.swing.tree.TreeCellRenderer> renderers
      • defaultRenderer

        protected javax.swing.tree.TreeCellRenderer defaultRenderer
    • Constructor Detail

      • MixedTreeCellRenderer

        public MixedTreeCellRenderer​(javax.swing.tree.TreeCellRenderer defaultRenderer)
        Creates new Template
    • Method Detail

      • putRenderer

        public void putRenderer​(java.lang.Object o,
                                javax.swing.tree.TreeCellRenderer r)
      • findRenderer

        protected javax.swing.tree.TreeCellRenderer findRenderer​(java.lang.Class<?> c)
      • getTreeCellRendererComponent

        public java.awt.Component getTreeCellRendererComponent​(javax.swing.JTree jTree,
                                                               java.lang.Object obj,
                                                               boolean selected,
                                                               boolean expanded,
                                                               boolean leaf,
                                                               int row,
                                                               boolean hasFocus)
        Specified by:
        getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRenderer