Direct Known Subclasses:
HRule, VRule

class Ruleextends PlotElement
Abstract base class for rule elements in RRD graphs. Represents horizontal or vertical rules with optional legends and styling.
  • Field Details

    • legend

      final LegendText legend
      Legend text for this rule
    • stroke

      final BasicStroke stroke
      Stroke style for drawing the rule line
  • Constructor Details

    • Rule

      Rule(Paint color, LegendText legend, BasicStroke stroke)
      Creates a new rule with specified color, legend, and stroke.
      Parameters:
      color - color for the rule line
      legend - optional legend text
      stroke - stroke style for the line