Exemplo n.º 1
0
 function GetLegendInterval(array &$spec, array &$cfg)
 {
     $spec['delta_size'] = $this->ComputeDeltaSize($cfg);
     $iv = new INTERVAL();
     $iv->SetupInterval($spec['xmin'], $spec['xmax']);
     $iv->SetupWindow(INTERVAL::WINDOW_NEIGHBOURHOOD, $spec['x'], dsMathPreciseSubstract($spec['xmax'], $spec['xmin']) * $spec['delta_size'] / $this->width);
     $iv->EnableFlexibility();
     return $iv;
 }