java.lang.Object
org.rrd4j.graph.Axis
org.rrd4j.graph.ValueAxisMrtg
All Implemented Interfaces:
RrdGraphConstants

class ValueAxisMrtgextends Axis
Represents MRTG-style value axis (y-axis) in RRD graphs. Provides MRTG-compatible axis formatting with quadrant-based scaling.
  • Field Details

    • im

      private final ImageParameters im
      Colours and fonts for the rendered graph.
    • worker

      private final ImageWorker worker
      Where the drawing happens.
    • gdef

      private final RrdGraphDef gdef
      The graph definition being drawn.
  • Constructor Details

    • ValueAxisMrtg

      ValueAxisMrtg(RrdGraph rrdGraph, ImageWorker worker)
      Sets up the axis from a graph already rendered by the image worker.
      Parameters:
      rrdGraph - the graph whose image and definition set up this axis
      worker - the image worker painting the graph
    • ValueAxisMrtg

      ValueAxisMrtg(RrdGraphGenerator generator)
      Sets up the axis from a graph still being built by the generator.
      Parameters:
      generator - the generator whose image, definition and worker set up this axis
  • Method Details

    • draw

      boolean draw()
      True if axis labels were drawn.
      Specified by:
      draw in class Axis
      Returns:
      true if labels were drawn, false for a NaN range