%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::DataArea

::rrd::DataArea[i] create ... \
           [ -color color ] \
           [ -color2 color2 ] \
           [ -datasource:required datasource:required ] \
           [ -ds-name (default "42") ] \
           [ -gradheight (default "50") ] \
           [ -legend legend ] \
           [ -name name ] \
           [ -scale (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::DataArea \
     -superclass ::rrd::DataElement

Methods (to be applied on instances)

  • render (scripted, public)

     <instance of rrd::DataArea[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"
    }
    
    set colors ${:color}
    if {[info exists :color2]} {append colors \#${:color2}}
    
    lappend defs  AREA:${:name}avgscaled#${colors}:$legend:gradheight=${:gradheight}  {*}[:gprintLegend]
    
    return $defs