Package repast.simphony.gis.legend
Class LegendRuleEntry
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
repast.simphony.gis.legend.LegendEntry
repast.simphony.gis.legend.LegendRuleEntry
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
Deprecated.
2D piccolo based code is being removed
This legend element represents a rule in a style. This will hold the rule as
well as an iconic representation of that rule. This will not have children.
Setting the dataVisible flag on this element will have no effect.
- Version:
- $Revision: 1.5 $
- Author:
- $Author: howe $
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
ConstructorDescriptionLegendRuleEntry
(String name, Icon icon, org.geotools.styling.Rule rule) Deprecated.Creates a new instance of LegendStyleElementNodeInfo -
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()
Deprecated.org.geotools.styling.Rule
getRule()
Deprecated.void
Deprecated.void
setRule
(org.geotools.styling.Rule rule) Deprecated.Methods inherited from class repast.simphony.gis.legend.LegendEntry
getIcon, getName, isDataVisible, setDataVisible, setDataVisible, setName, toString
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
-
LegendRuleEntry
Deprecated.Creates a new instance of LegendStyleElementNodeInfo- Parameters:
name
- The title of the Rule.icon
- The icon for this Rule.rule
- The rule for this LegendEntry.
-
-
Method Details
-
setRule
public void setRule(org.geotools.styling.Rule rule) Deprecated. -
getRule
public org.geotools.styling.Rule getRule()Deprecated. -
setIcon
Deprecated. -
getIcon
Deprecated. -
getBackground
Deprecated.Description copied from class:LegendEntry
Get the background color for this node based on whether the node is selected or not.- Overrides:
getBackground
in classLegendEntry
- Parameters:
selected
- Is this entry currently selected?- Returns:
- The background color for this entry.
-