org.rrd4j.graph

## Class Rule

- java.lang.Object
- - org.rrd4j.graph.PlotElement
  - - org.rrd4j.graph.Rule

- Direct Known Subclasses:
    HRule, VRule

      class Rule
      extends PlotElement

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) LegendText` | `legend` Legend text for this rule
    `(package private) BasicStroke` | `stroke` Stroke style for drawing the rule line

    - ### Fields inherited from class org.rrd4j.graph.PlotElement

      `color`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Rule(Paint color, LegendText legend, BasicStroke stroke)` Creates a new rule with specified color, legend, and stroke.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### legend

          final LegendText legend

      Legend text for this rule

    - #### stroke

          final BasicStroke stroke

      Stroke style for drawing the rule line

  - ### Constructor Detail

    - #### 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