class VRuleextends Rule
Represents a vertical rule in RRD graphs. Draws a vertical line at a specific timestamp across the graph with optional legend.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final long
    The timestamp at which to draw the vertical rule

    Fields inherited from class Rule

    legend, stroke
    Modifier and Type
    Field
    Description
    (package private) final LegendText
    Legend text for this rule
    (package private) final BasicStroke
    Stroke style for drawing the rule line

    Fields inherited from class PlotElement

    color
    Modifier and Type
    Field
    Description
    (package private) final Paint
    The color used for rendering this plot element
  • Constructor Summary

    Constructors
    Constructor
    Description
    VRule(long timestamp, Paint color, LegendText legend, BasicStroke stroke)
    Creates a vertical rule at the specified timestamp.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    (package private) void
    setLegendVisibility(long minval, long maxval, boolean forceLegend)
    Sets legend visibility based on timestamp range and force setting.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • timestamp

      final long timestamp
      The 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 rule
      color - color for the rule line
      legend - optional legend text
      stroke - 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 range
      maxval - maximum timestamp range
      forceLegend - if true, legend is always visible