class HRule extends Rule
| Modifier and Type | Field and Description |
|---|---|
(package private) double | valueThe value at which to draw the horizontal rule |
color| Constructor and Description |
|---|
HRule(double value,
Paint color,
LegendText legend,
BasicStroke stroke)Creates a horizontal rule at the specified value. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | setLegendVisibility(double minval,
double maxval,
boolean forceLegend)Sets legend visibility based on value range and force setting. |
HRule(double value,
Paint color,
LegendText legend,
BasicStroke stroke)value - the y-axis value for the rulecolor - color for the rule linelegend - optional legend textstroke - stroke style for the line