class Rule extends PlotElement
| Modifier and Type | Field and Description |
|---|---|
(package private) LegendText | legendLegend text for this rule |
(package private) BasicStroke | strokeStroke style for drawing the rule line |
color| Constructor and Description |
|---|
Rule(Paint color,
LegendText legend,
BasicStroke stroke)Creates a new rule with specified color, legend, and stroke. |
final LegendText legend
final BasicStroke stroke
Rule(Paint color, LegendText legend, BasicStroke stroke)
color - color for the rule linelegend - optional legend textstroke - stroke style for the line