public class ConstantAreaextends Area
Represents an area plot element with a constant value in RRD graphs. Extends Area to provide filled areas with fixed values across all data points. Useful for showing reference levels, thresholds, or baseline areas.
  • Field Details

    • value

      private final double value
      The constant value for this area
  • Constructor Details

    • ConstantArea

      ConstantArea(double value, Paint color, SourcedPlotElement parent)
      Creates a constant area with the specified value, color, and parent.
      Parameters:
      value - the constant value for all data points
      color - the fill color for the area
      parent - the parent plot element for stacking
  • Method Details

    • assignValues

      void assignValues(DataProcessor dproc)
      Assigns constant values to all data points, optionally stacking with parent values.
      Overrides:
      assignValues in class SourcedPlotElement
      Parameters:
      dproc - the data processor for value assignment