org.geotools.gui.swing.legend
Class LegendRootNodeInfo

java.lang.Object
  extended byorg.geotools.gui.swing.legend.LegendNodeInfo
      extended byorg.geotools.gui.swing.legend.LegendRootNodeInfo
All Implemented Interfaces:
java.io.Serializable

public class LegendRootNodeInfo
extends LegendNodeInfo

stores Context Object reference and others

Author:
jianhuij
See Also:
Serialized Form

Constructor Summary
LegendRootNodeInfo(MapContext context, java.lang.String name, boolean selected)
          Creates a new instance of LegendRootNoteInfo
 
Method Summary
 java.awt.Color getBackground(boolean selected)
           
 javax.swing.Icon getIcon(boolean selected)
           
 MapContext getMapContext()
           
 boolean isSelected()
           
 void setMapContext(MapContext context)
           
 void setSelected(boolean selected)
           
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.gui.swing.legend.LegendNodeInfo
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegendRootNodeInfo

public LegendRootNodeInfo(MapContext context,
                          java.lang.String name,
                          boolean selected)
Creates a new instance of LegendRootNoteInfo

Parameters:
context - DOCUMENT ME!
name - DOCUMENT ME!
selected - DOCUMENT ME!
Method Detail

getBackground

public java.awt.Color getBackground(boolean selected)
Specified by:
getBackground in class LegendNodeInfo

getMapContext

public MapContext getMapContext()

setMapContext

public void setMapContext(MapContext context)

setSelected

public void setSelected(boolean selected)

isSelected

public boolean isSelected()
Specified by:
isSelected in class LegendNodeInfo

toString

public java.lang.String toString()
Specified by:
toString in class LegendNodeInfo

getIcon

public javax.swing.Icon getIcon(boolean selected)
Specified by:
getIcon in class LegendNodeInfo
See Also:
LegendNodeInfo.getIcon(boolean)


Copyright © GeoTools. All Rights Reserved.