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
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:
- Serialized Form
|
Constructor Summary |
LegendRuleEntry(String name,
Icon icon,
org.geotools.styling.Rule rule)
Creates a new instance of LegendStyleElementNodeInfo |
| 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 |
LegendRuleEntry
public LegendRuleEntry(String name,
Icon icon,
org.geotools.styling.Rule rule)
- 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.
setRule
public void setRule(org.geotools.styling.Rule rule)
getRule
public org.geotools.styling.Rule getRule()
setIcon
public void setIcon(Icon icon)
getIcon
public Icon getIcon()
getBackground
public Color getBackground(boolean selected)
- Description copied from class:
LegendEntry
- Get the background color for this node based on whether the node is
selected or not.
- Overrides:
getBackground in class LegendEntry
- Parameters:
selected - Is this entry currently selected?
- Returns:
- The background color for this entry.