Package repast.simphony.gis.legend
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
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:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
ConstructorDescriptionDeprecated.Default Constructor, this will be an empty entry in the legend.LegendEntry
(Object userObject) Deprecated.Create the legend entry based on the supplied user object. -
Method Summary
Modifier and TypeMethodDescriptiongetBackground
(boolean selected) Deprecated.Get the background color for this node based on whether the node is selected or not.getIcon
(boolean selected) Deprecated.Get the icon for this entry.getName()
Deprecated.Get the name of this Legend Entryboolean
Deprecated.Is this entry currently selected?void
setDataVisible
(boolean dataVisible) Deprecated.Set the selected status of this entry.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.void
Deprecated.Set the name of this Legend Entry.toString()
Deprecated.Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Constructor Details
-
LegendEntry
public LegendEntry()Deprecated.Default Constructor, this will be an empty entry in the legend. -
LegendEntry
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
Deprecated.Set the name of this Legend Entry.- Parameters:
name
- The name for this legend entry.
-
getName
Deprecated.Get the name of this Legend Entry- Returns:
- The name of this legend entry.
-
getIcon
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
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
Deprecated.- Overrides:
toString
in classDefaultMutableTreeNode
-