Class LegendEntry

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
repast.simphony.gis.legend.LegendEntry
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Direct Known Subclasses:
LegendLayerEntry, LegendRuleEntry

public class LegendEntry extends DefaultMutableTreeNode implements Serializable
Deprecated.
2D piccolo based code is being removed
This represents a generic entry in the legend. This will be selectable and have children.
Version:
$Revision: 1.6 $
Author:
$Author: howe $
See Also:
  • Constructor Details

    • LegendEntry

      public LegendEntry()
      Deprecated.
      Default Constructor, this will be an empty entry in the legend.
    • LegendEntry

      public LegendEntry(Object userObject)
      Deprecated.
      Create the legend entry based on the supplied user object. The name of the entry will be the value of the user object.
      Parameters:
      userObject - The object on which to base this legend entry.
  • Method Details

    • setName

      public void setName(String name)
      Deprecated.
      Set the name of this Legend Entry.
      Parameters:
      name - The name for this legend entry.
    • getName

      public String getName()
      Deprecated.
      Get the name of this Legend Entry
      Returns:
      The name of this legend entry.
    • getIcon

      public Icon getIcon(boolean selected)
      Deprecated.
      Get the icon for this entry. The generic legend entry has no icon associated with it.
      Parameters:
      selected - Is this entry selected?
      Returns:
      The icon, null in the general case.
    • getBackground

      public Color getBackground(boolean selected)
      Deprecated.
      Get the background color for this node based on whether the node is selected or not.
      Parameters:
      selected - Is this entry currently selected?
      Returns:
      The background color for this entry.
    • isDataVisible

      public boolean isDataVisible()
      Deprecated.
      Is this entry currently selected?
      Returns:
      Whether the entry is selected or not.
    • setDataVisible

      public void setDataVisible(boolean dataVisible)
      Deprecated.
      Set the selected status of this entry.
      Parameters:
      dataVisible -
    • setDataVisible

      public void setDataVisible(boolean dataVisible, boolean propogateChanges)
      Deprecated.
      Set the selected status of this entry and whether or not the selected status should be propogated to children.
      Parameters:
      dataVisible -
      propogateChanges - whether not the changes should be propogated to children
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class DefaultMutableTreeNode