java.lang.Object
org.rrd4j.graph.PlotElement
org.rrd4j.graph.Rule
org.rrd4j.graph.VRule
Represents a vertical rule in RRD graphs. Draws a vertical line at a specific timestamp across the graph with optional legend.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longThe timestamp at which to draw the vertical ruleFields inherited from class Rule
legend, strokeModifier 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
ConstructorsConstructorDescriptionVRule(long timestamp, Paint color, LegendText legend, BasicStroke stroke) Creates a vertical rule at the specified timestamp.Method Summary
All MethodsModifier and TypeMethodDescription(package private) voidsetLegendVisibility(long minval, long maxval, boolean forceLegend) Sets legend visibility based on timestamp range and force setting.
Field Details
timestamp
final long timestampThe timestamp at which to draw the vertical rule
Constructor Details
VRule
VRule(long timestamp, Paint color, LegendText legend, BasicStroke stroke) Creates a vertical rule at the specified timestamp.- Parameters:
timestamp- timestamp in seconds for the rulecolor- color for the rule linelegend- optional legend textstroke- stroke style for the line
Method Details
setLegendVisibility
void setLegendVisibility(long minval, long maxval, boolean forceLegend) Sets legend visibility based on timestamp range and force setting.- Parameters:
minval- minimum timestamp rangemaxval- maximum timestamp rangeforceLegend- if true, legend is always visible