Example #1
0
 public function __construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = PIE_LEFT, $top = PIE_TOP)
 {
     parent::__construct($bgw, $bgh, $left, $top);
     // サイズ設定
     $this->setSize(PIE_WIDTH, PIE_HEIGHT, PIE_THICK);
     // 位置設定
     $this->setPosition($this->left + $this->cw / 2, $this->top + $this->ch / 2);
 }
Example #2
0
 public function __construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, $area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT)
 {
     parent::__construct($bgw, $bgh, $left, $top);
     $this->area_width = $area_width;
     $this->area_height = $area_height;
     $this->ygrid_on = true;
     $this->line_max = 0;
     $this->graph_max = 0;
     $this->XLabelAngle = 0;
     $this->x_margin = 0;
     $this->y_margin = 0;
 }
Example #3
0
 /**
  * Constructs a GraphAsLists with the specified size.
  *
  * @param size The maximum number of vertices.
  */
 public function __construct($size = 0)
 {
     parent::__construct($size);
     $this->adjacencyList = new BasicArray($size);
     for ($i = 0; $i < $size; ++$i) {
         $this->adjacencyList[$i] = new LinkedList();
     }
 }
Example #4
0
 /**
  * Constructs a GraphAsMatrix with the specified size.
  *
  * @param size The maximum number of vertices.
  */
 public function __construct($size = 0)
 {
     parent::__construct($size);
     $this->matrix = new DenseMatrix($size, $size);
 }
Example #5
0
 /**
  * Constructs an AbstractDigraph with the specified size.
  *
  * @param integer $size The maximum number of vertices.
  */
 public function __construct($size)
 {
     parent::__construct();
 }