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
public class LegendRuleEntry extends LegendEntry
Deprecated.2D piccolo based code is being removedThis 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description LegendRuleEntry(String name, Icon icon, org.geotools.styling.Rule rule)
Deprecated.Creates a new instance of LegendStyleElementNodeInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Color
getBackground(boolean selected)
Deprecated.Get the background color for this node based on whether the node is selected or not.Icon
getIcon()
Deprecated.org.geotools.styling.Rule
getRule()
Deprecated.void
setIcon(Icon icon)
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
-
-
-
-
Method Detail
-
setRule
public void setRule(org.geotools.styling.Rule rule)
Deprecated.
-
getRule
public org.geotools.styling.Rule getRule()
Deprecated.
-
setIcon
public void setIcon(Icon icon)
Deprecated.
-
getIcon
public Icon getIcon()
Deprecated.
-
getBackground
public Color getBackground(boolean selected)
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.
-
-