org.geotools.gui.swing.legend
Class LegendTreeCellRendererSwitcher

java.lang.Object
  extended byorg.geotools.gui.swing.legend.LegendTreeCellRendererSwitcher
All Implemented Interfaces:
javax.swing.tree.TreeCellRenderer

public class LegendTreeCellRendererSwitcher
extends java.lang.Object
implements javax.swing.tree.TreeCellRenderer

Three kinds of nodes, but only two kinds of rendering require in a legendTree layer and root node using LegendTreeLayerCellRenderer, Rule use LegendTreeRuleCellRenderer

Author:
jianhuij

Constructor Summary
LegendTreeCellRendererSwitcher()
           
 
Method Summary
 java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendTreeCellRendererSwitcher

public LegendTreeCellRendererSwitcher()
Method Detail

getTreeCellRendererComponent

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


Copyright © GeoTools. All Rights Reserved.