java.lang.Object
org.rrd4j.graph.PlotElement
org.rrd4j.graph.Rule
Abstract base class for rule elements in RRD graphs. Represents horizontal or vertical rules with optional legends and styling.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LegendTextLegend text for this rule(package private) final BasicStrokeStroke style for drawing the rule lineFields inherited from class PlotElement
colorConstructor Summary
ConstructorsConstructorDescriptionRule(Paint color, LegendText legend, BasicStroke stroke) Creates a new rule with specified color, legend, and stroke.Method Summary
Field Details
legend
Legend text for this rulestroke
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 linelegend- optional legend textstroke- stroke style for the line