Class LegendRuleEntry

  • All Implemented Interfaces:
    Serializable, Cloneable, MutableTreeNode, TreeNode

    public class LegendRuleEntry
    extends LegendEntry
    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:
    Serialized Form
    • Constructor Detail

      • LegendRuleEntry

        public LegendRuleEntry​(String name,
                               Icon icon,
                               org.geotools.styling.Rule rule)
        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 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 class LegendEntry
        Parameters:
        selected - Is this entry currently selected?
        Returns:
        The background color for this entry.