當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Graph::__construct方法代碼示例

本文整理匯總了PHP中Graph::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Graph::__construct方法的具體用法?PHP Graph::__construct怎麽用?PHP Graph::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Graph的用法示例。


在下文中一共展示了Graph::__construct方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
 {
     parent::__construct($width, $height, $cachedName, $timeout, $inline);
     $this->posx = $width / 2;
     $this->posy = $height / 2;
     $this->SetColor(array(255, 255, 255));
     if ($this->graph_theme) {
         $this->graph_theme->ApplyGraph($this);
     }
 }
開發者ID:solodeuva,項目名稱:polideportivo,代碼行數:10,代碼來源:PieGraph.php

示例2: __construct

 public function __construct($w, $h, $settings = NULL)
 {
     // backwards compatibility
     $copy = array('show_labels' => 'show_data_labels', 'label_fade_in_speed' => 'data_label_fade_in_speed', 'label_fade_out_speed' => 'data_label_fade_out_speed');
     foreach ($copy as $from => $to) {
         if (isset($settings[$from])) {
             $settings[$to] = $settings[$from];
         }
     }
     parent::__construct($w, $h, $settings);
 }
開發者ID:schnitzelx,項目名稱:SchoolSurvey,代碼行數:11,代碼來源:SVGGraphPieGraph.php

示例3:

 /**
  * @param $width
  * @param $height
  * @param $cachedName
  * @param $timeout
  * @param $inline
  * @return unknown_type
  */
 function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
 {
     parent::__construct($width, $height, $cachedName, $timeout, $inline);
     $this->SetColor('white');
     $this->title->SetFont(FF_VERDANA, FS_NORMAL, 12);
     $this->title->SetMargin(8);
     $this->subtitle->SetFont(FF_VERDANA, FS_NORMAL, 10);
     $this->subtitle->SetMargin(0);
     $this->subsubtitle->SetFont(FF_VERDANA, FS_NORMAL, 8);
     $this->subsubtitle->SetMargin(0);
     $this->SetColor('lightgray:1.8');
 }
開發者ID:rebuy-de,項目名稱:jpgraph,代碼行數:20,代碼來源:jpgraph_matrix.php

示例4: Text

 /**
  * @param $aWidth
  * @param $aHeight
  * @param $aCachedName
  * @param $aTimeOut
  * @param $aInline
  * @return unknown_type
  */
 function __construct($aWidth = -1, $aHeight = -1, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     parent::__construct($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->SetColor($this->iOdoColor);
     $this->img->SetMargin(5, 5, 5, 5);
     $this->SetMarginColor($this->iOdoMarginColor);
     $this->caption = new Text();
     $this->caption->ParagraphAlign("center");
     $this->subcaption = new Text();
     $this->subcaption->ParagraphAlign("center");
     $this->title->SetFont(FF_FONT1, FS_BOLD);
     $this->texts = array();
 }
開發者ID:rebuy-de,項目名稱:jpgraph,代碼行數:21,代碼來源:jpgraph_odo.php

示例5: GanttScale

 function __construct($aWidth = 0, $aHeight = 0, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     // Backward compatibility
     if ($aWidth == -1) {
         $aWidth = 0;
     }
     if ($aHeight == -1) {
         $aHeight = 0;
     }
     if ($aWidth < 0 || $aHeight < 0) {
         JpgraphError::RaiseL(6002);
         //("You can't specify negative sizes for Gantt graph dimensions. Use 0 to indicate that you want the library to automatically determine a dimension.");
     }
     parent::__construct($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->scale = new GanttScale($this->img);
     // Default margins
     $this->img->SetMargin(15, 17, 25, 15);
     $this->hgrid = new HorizontalGridLine();
     $this->scale->ShowHeaders(GANTT_HWEEK | GANTT_HDAY);
     $this->SetBox();
 }
開發者ID:awlx,項目名稱:librenms,代碼行數:21,代碼來源:jpgraph_gantt.php

示例6: min

 function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
 {
     parent::__construct($width, $height, $cachedName, $timeout, $inline);
     $this->posx = $width / 2;
     $this->posy = $height / 2;
     $this->len = min($width, $height) * 0.35;
     $this->SetColor(array(255, 255, 255));
     $this->SetTickDensity(TICKD_NORMAL);
     $this->SetScale('lin');
     $this->SetGridDepth(DEPTH_FRONT);
 }
開發者ID:bailey-ann,項目名稱:stringtools,代碼行數:11,代碼來源:jpgraph_radar.php

示例7:

 function __construct($width = 300, $height = 200, $cachedName = "", $timeout = 0, $inline = 1)
 {
     parent::__construct($width, $height, $cachedName, $timeout, $inline);
     $this->posx = $width / 2;
     $this->posy = $height / 2;
     $this->SetColor(array(255, 255, 255));
 }
開發者ID:awlx,項目名稱:librenms,代碼行數:7,代碼來源:jpgraph_pie.php

示例8:

 function __construct($aWidth = 300, $aHeight = 200, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     parent::__construct($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->SetDensity(TICKD_DENSE);
     $this->SetBox();
     $this->SetMarginColor('white');
 }
開發者ID:JulianaSchuster,項目名稱:oxid-frontend,代碼行數:7,代碼來源:jpgraph_polar.php

示例9:

 function __construct($aWidth = 300, $aHeight = 200, $aCachedName = "", $timeout = 0, $inline = 1)
 {
     parent::__construct($aWidth, $aHeight, $aCachedName, $timeout, $inline);
 }
開發者ID:hcvcastro,項目名稱:pxp,代碼行數:4,代碼來源:jpgraph_canvas.php

示例10: __construct

 /**
  * Constructor for GraphTraversal.
  * @param Graph $graph Graph to be traversed.
  */
 public function __construct(&$graph)
 {
     parent::__construct($graph->getName(), $graph->isDirected());
 }
開發者ID:ankitpokhrel,項目名稱:g-raph,代碼行數:8,代碼來源:GraphTraversal.php

示例11: array

 /**
  * Constructor for Digraph objects.
  * @param string $p_name       Name of the graph.
  * @param array  $p_attributes Attributes.
  * @param string $p_tool       Graphviz tool.
  */
 function __construct($p_name = 'G', array $p_attributes = array(), $p_tool = 'dot')
 {
     parent::__construct($p_name, $p_attributes, $p_tool);
 }
開發者ID:spring,項目名稱:spring-website,代碼行數:10,代碼來源:graphviz_api.php

示例12: __construct

 public function __construct($pValue)
 {
     parent::__construct($pValue);
     $this->mRootNode = $this->mCurrentNode;
 }
開發者ID:jeanphilippe-p,項目名稱:ObjectManagerLib,代碼行數:5,代碼來源:Tree.php

示例13: __construct

 /**
  * Propagate the construction.
  *
  * @param   bool    $loop    Allow or not loop.
  * @return  void
  */
 public function __construct($loop = parent::DISALLOW_LOOP)
 {
     parent::__construct($loop);
     return;
 }
開發者ID:Grummfy,項目名稱:Central,代碼行數:11,代碼來源:AdjacencyList.php

示例14: __construct

 public function __construct($number, $paths)
 {
     parent::__construct($number, $paths);
 }
開發者ID:carriercomm,項目名稱:yaketystats,代碼行數:4,代碼來源:index.php


注:本文中的Graph::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。