All Implemented Interfaces:
RrdGraphConstants

class PrintTextextends CommentText
Represents printable text elements in RRD graphs. Extends CommentText to provide formatted text output with variable substitution and unit scaling.
  • Field Details

    • UNIT_MARKER

      static final String UNIT_MARKER
      Unit marker regex pattern.
      See Also:
    • UNIT_PATTERN

      static final Pattern UNIT_PATTERN
      Compiled unit pattern.
    • srcName

      private final String srcName
      Name of the data source for variable substitution
    • includedInGraph

      private final boolean includedInGraph
      Whether this text should be included in the graph legend
    • strftime

      private final boolean strftime
      Whether this text uses strftime formatting for time values
  • Constructor Details

    • PrintText

      PrintText(String srcName, String text, boolean includedInGraph, boolean strftime)
      Creates printable text with specified source, format, and display options.
      Parameters:
      srcName - data source name for variable substitution
      text - format string with optional variable markers
      includedInGraph - whether to include in graph legend
      strftime - whether to use time formatting
  • Method Details

    • isPrint

      boolean isPrint()
      Description copied from class: CommentText
      Returns whether this comment is a print item.
      Overrides:
      isPrint in class CommentText
      Returns:
      true if this is a print comment
    • resolveText

      void resolveText(Locale l, DataProcessor dproc, ValueScaler valueScaler)
      Description copied from class: CommentText
      Resolves the text with variable substitution and marker processing.
      Overrides:
      resolveText in class CommentText
      Parameters:
      l - the locale for formatting
      dproc - the data processor for resolving data references
      valueScaler - the value scaler for number formatting