linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Source for file LightLine.php

Documentation is available at LightLine.php

  1. <?php
  2. /*
  3.  * This work is hereby released into the Public Domain.
  4.  * To view a copy of the public domain dedication,
  5.  * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
  6.  * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
  7.  *
  8.  */
  9.  
  10. /**
  11.  * @package linea21.externals
  12.  * @subpackage artichow
  13.  */
  14.  
  15. require_once ARTICHOW."/LinePlot.class.php";
  16.  
  17. class LightLinePattern extends Pattern {
  18.  
  19.      function create({
  20.         
  21.         $legend $this->getArg('legend');
  22.         
  23.         $y $this->getArg('y');
  24.         
  25.         if($y === NULL{
  26.             awImage::drawError("Class LightLinePattern: Argument 'y' must not be NULL.");
  27.         }
  28.         
  29.         $plot new LinePlot($y);
  30.         $plot->setSize(0.71);
  31.         $plot->setCenter(0.350.5);
  32.         $plot->setPadding(35153530);
  33.         $plot->setColor(new Orange());
  34.         $plot->setFillColor(new LightOrange(80));
  35.         
  36.         $plot->grid->setType(LINE_DASHED);
  37.         
  38.         $plot->mark->setType(MARK_CIRCLE);
  39.         $plot->mark->setFill(new MidRed);
  40.         $plot->mark->setSize(6);
  41.         
  42.         $plot->legend->setPosition(10.5);
  43.         $plot->legend->setAlign(LEGEND_LEFT);
  44.         $plot->legend->shadow->smooth(TRUE);
  45.         
  46.         if($legend !== NULL{
  47.             $plot->legend->add($plot$legendLEGEND_MARK);
  48.         }
  49.         
  50.         return $plot;
  51.  
  52.     }
  53.  
  54. }
  55. ?>

Documentation generated on Fri, 16 Oct 2009 09:35:41 +0200 by phpDocumentor 1.4.1