Lines Matching refs:flags

37             'desc' => 'sets the flags to use',
39 'flags' => 'array',
185 * @param flags flags to set
189 function setFlags($flags = array()) { argument
190 foreach ($flags as $key => $val) {
192 unset($flags[$key]);
197 $flags[$key] = array(
201 if (!file_exists($flags[$key]['name']))
202 unset($flags[$key]);
206 $flags[$key] = array(
212 unset($flags[$key]);
216 unset($flags[$key]);
220 $flags[$key] = true;
222 $flags[$key] = false;
224 unset($flags[$key]);
227 $flags[$key] = $this->_trimArray(explode(',', $flags[$key]));
231 unset($flags[$key]);
235 unset($flags[$key]);
239 unset($flags[$key]);
242 $flags[$key] = $this->_parseRGB($val);
243 if (!$flags[$key])
244 unset($flags[$key]);
247 $flags[$key] = DOKU_PLUGIN.'charter/lib/palettes/' . $val . '.txt';
248 if (!file_exists($flags[$key]))
249 unset($flags[$key]);
252 $flags[$key] = $this->_trimArray(explode(',', $flags[$key]));
253 for ($i = 0; $i < count($flags[$key]); $i++) {
254 $flags[$key][$i] = $this->_trimArray(explode('|', $flags[$key][$i]));
255 if (count($flags[$key][$i]) != 3) {
256 unset($flags[$key]);
259 if (!is_numeric($flags[$key][$i][0]) || $flags[$key][$i][0] < 0) {
260 unset($flags[$key]);
267 unset($flags[$key]);
273 unset($flags[$key]);
275 $flags[$key] = array(
283 if (!isset($flags[$key]))
284 $flags[$key] = $val;
287 $this->flags = $flags;
324 switch ($this->flags['type']) {
363 if (isset($this->flags['XAxisName']))
364 $pdata->SetXAxisName($this->flags['XAxisName']);
365 if (isset($this->flags['YAxisName']))
366 $pdata->SetYAxisName($this->flags['YAxisName']);
369 if (isset($this->flags['XAxisUnit']))
370 $pdata->SetXAxisUnit($this->flags['XAxisUnit']);
371 if (isset($this->flags['YAxisUnit']))
372 $pdata->SetYAxisUnit($this->flags['YAxisUnit']);
375 if (isset($this->flags['XAxisFormat']))
376 $pdata->SetXAxisFormat($this->flags['XAxisFormat']);
377 if (isset($this->flags['YAxisFormat']))
378 $pdata->SetYAxisFormat($this->flags['YAxisFormat']);
384 if (isset($this->flags['legendEntries'][$serie-1]))
385 $pdata->SetSerieName($this->flags['legendEntries'][$serie-1], 'Serie' . $serie);
391 if (isset($this->flags['labelSerie'])) {
392 $labelSerie = 'Serie' . $this->flags['labelSerie'];
409 $pchart = new pChart($this->flags['size']['width'], $this->flags['size']['height']);
410 …$pchart->drawBackground($this->flags['bgcolor'][0], $this->flags['bgcolor'][1], $this->flags['bgco…
413 if (isset($this->flags['bggradient']))
414 …adient($this->flags['bggradient']['color'][0], $this->flags['bggradient']['color'][1], $this->flag…
417 if (isset($this->flags['palette']))
418 $pchart->loadColorPalette($this->flags['palette']);
421 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
423 if ($this->flags['legend'])
427 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
428 …$pchart->setGraphArea(50, 30, $this->flags['size']['width'] - $legendSize[0] - 40, $this->flags['s…
429 …$pchart->drawGraphArea($this->flags['graphColor'][0], $this->flags['graphColor'][1], $this->flags[…
432 if (isset($this->flags['graphGradient']))
433 …t($this->flags['graphGradient']['color'][0], $this->flags['graphGradient']['color'][1], $this->fla…
436 if ($this->flags['legend']) {
437 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
438flags['size']['width'] - $legendSize[0] - 15, 30, $pdata->GetDataDescription(), $this->flags['lege…
439 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
443 switch ($this->flags['type']) {
446 …TART0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleColor'][2]…
449 …TART0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleColor'][2]…
452 …TART0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleColor'][2]…
457 if ($this->flags['grid'])
458 $pchart->drawGrid(4, true, 230, 230, 230, $this->flags['alpha']);
461 if (isset($this->flags['thresholds'])) {
462 foreach ($this->flags['thresholds'] as $threshold) {
468 …if ($this->flags['shadow'] && in_array($this->flags['type'], array('line', 'lineFilled', 'cubic', …
469 …$pchart->setShadowProperties(3,3,$this->flags['shadowColor'][0],$this->flags['shadowColor'][1],$th…
470 if ($this->flags['dots'])
471 $pchart->drawPlotGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['dots']);
472 switch ($this->flags['type']) {
477 …$pchart->drawFilledLineGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
483 …>drawFilledCubicCurve($pdata->GetData(), $pdata->GetDataDescription(), 0.1, $this->flags['alpha']);
486 …Graph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['shadow'], $this->flags['alpha…
489 …$pchart->drawStackedBarGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
492 …$pchart->drawOverlayBarGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
498 if (isset($this->flags['graphLabels'])) {
499 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size'])…
500 foreach($this->flags['graphLabels'] as $label) {
506 if (isset($this->flags['title'])) {
507 $pchart->setFontProperties($this->flags['fontTitle']['name'], $this->flags['fontTitle']['size']);
508 …(50, 20, $this->flags['title'], $this->flags['titleColor'][0], $this->flags['titleColor'][1], $thi…
523 $pchart = new pChart($this->flags['size']['width'], $this->flags['size']['height']);
524 …$pchart->drawBackground($this->flags['bgcolor'][0], $this->flags['bgcolor'][1], $this->flags['bgco…
527 if (isset($this->flags['palette']))
528 $pchart->loadColorPalette($this->flags['palette']);
531 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
533 if ($this->flags['legend'])
538 (int)(($this->flags['size']['width'] - $legendSize[0] - 20) / 2),
539 (int)($this->flags['size']['height'] / 2),
542 if ($this->flags['pieExploded'])
546 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
547 if ($this->flags['legend']) {
548 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
549flags['size']['width'] - $legendSize[0] - 15, 30, $pdata->GetData(), $pdata->GetDataDescription(),…
550 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
555 if ($this->flags['pieLabels'] && $this->flags['piePercentages'])
557 else if ($this->flags['pieLabels'])
559 else if ($this->flags['piePercentages'])
561 if ($this->flags['shadow'])
562 …$pchart->setShadowProperties(3,3,$this->flags['shadowColor'][0],$this->flags['shadowColor'][1],$th…
563 switch ($this->flags['type']) {
565 if ($this->flags['pieExploded']) {
566 …->GetDataDescription(), $center[0], $center[1], $radius, $labeltype, 10, $this->flags['decimals']);
568 …cription(), $center[0], $center[1], $radius, $labeltype, 255, 255, 255, $this->flags['decimals']);
572 …enter[1], $radius, $labeltype, true, 60, 20, (($this->flags['pieExploded']) ? 10 : 0), $this->flag…
578 if (isset($this->flags['title'])) {
579 $pchart->setFontProperties($this->flags['fontTitle']['name'], $this->flags['fontTitle']['size']);
580 …(50, 20, $this->flags['title'], $this->flags['titleColor'][0], $this->flags['titleColor'][1], $thi…
581 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size'])…