org.geotools.gui.swing.legend
Class LegendNodeInfo

java.lang.Object
  extended byorg.geotools.gui.swing.legend.LegendNodeInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LegendLayerNodeInfo, LegendRootNodeInfo, LegendRuleNodeInfo

public abstract class LegendNodeInfo
extends java.lang.Object
implements java.io.Serializable

in a legend, three kind node involves: Root Node, Layer Node, Rule Node this is a interface for simplify coding some common features in those three class.

Author:
jianhuij
See Also:
Serialized Form

Constructor Summary
LegendNodeInfo()
           
 
Method Summary
abstract  java.awt.Color getBackground(boolean selected)
           
abstract  javax.swing.Icon getIcon(boolean selected)
           
 java.lang.String getName()
           
abstract  boolean isSelected()
           
 void setName(java.lang.String name)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegendNodeInfo

public LegendNodeInfo()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

toString

public abstract java.lang.String toString()

getIcon

public abstract javax.swing.Icon getIcon(boolean selected)

getBackground

public abstract java.awt.Color getBackground(boolean selected)

isSelected

public abstract boolean isSelected()


Copyright © GeoTools. All Rights Reserved.