当前位置: 首页>>代码示例>>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;未经允许,请勿转载。