%3 ::rrd::DataArea ::rrd::DataArea render ::rrd::DataElement ::rrd::DataElement gprintLegend init render ::rrd::DataArea->::rrd::DataElement ::rrd::DataLine ::rrd::DataLine render ::rrd::DataLine->::rrd::DataElement ::rrd::TrendLine ::rrd::TrendLine render ::rrd::TrendLine->::rrd::DataElement ::rrd::Element ::rrd::Element ::rrd::DataElement->::rrd::Element ::rrd::VolatileObject ::rrd::VolatileObject ::rrd::Element->::rrd::VolatileObject

Class ::rrd::DataLine

::rrd::DataLine[i] create ... \
           [ -color color ] \
           [ -datasource:required datasource:required ] \
           [ -ds-name (default "42") ] \
           [ -legend legend ] \
           [ -name name ] \
           [ -scale (default "1") ] \
           [ -width (default "1") ]

Defined in packages/rrd-tool/tcl/rrd-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::rrd::DataElement[i]
::nx::Class create ::rrd::DataLine \
     -superclass ::rrd::DataElement

Methods (to be applied on instances)

  • render (scripted, public)

     <instance of rrd::DataLine[i]> render

    Testcases:
    No testcase defined.
    set defs [next]
    
    if {[info exists :legend]} {
      set legend "[format %-20s ${:legend}]\t"
    } else {
      set legend "[format %-20s ${:name}]\t"
    }
    
    lappend defs  LINE${:width}:${:name}avgscaled#${:color}:$legend  {*}[:gprintLegend]
    
    return $defs