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


PHP Graph::Graph方法代碼示例

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


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

示例1: GanttGraph

 function GanttGraph($aWidth = 0, $aHeight = 0, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     Graph::Graph($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->scale = new GanttScale($this->img);
     if ($aWidth > 0) {
         $this->img->SetMargin($aWidth / 17, $aWidth / 17, $aHeight / 7, $aHeight / 10);
     }
     $this->scale->ShowHeaders(GANTT_HWEEK | GANTT_HDAY);
     $this->SetBox();
 }
開發者ID:teammember8,項目名稱:roundcube,代碼行數:10,代碼來源:jpgraph_gantt.php

示例2: OdoGraph

 function OdoGraph($aWidth = -1, $aHeight = -1, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     Graph::Graph($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->SetColor($this->iOdoColor);
     $this->img->SetMargin(5, 5, 5, 5);
     $this->SetMarginColor("steelblue");
     $this->caption = new Text();
     $this->caption->ParagraphAlign("center");
     $this->subcaption = new Text();
     $this->subcaption->ParagraphAlign("center");
     $this->title->SetFont(FF_FONT1, FS_BOLD);
 }
開發者ID:rrsc,項目名稱:freemed,代碼行數:12,代碼來源:jpgraph_odo.php

示例3: PolarGraph

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

示例4: GanttGraph

 function GanttGraph($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.");
     }
     Graph::Graph($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:valerio-bozzolan,項目名稱:openparlamento,代碼行數:21,代碼來源:jpgraph_gantt.php

示例5: Digraph

 function Digraph($p_name = 'G', $p_attributes = array(), $p_tool = 'dot', $p_com_module = 'WinGraphviz.DOT')
 {
     parent::Graph($p_name, $p_attributes, $p_tool, $p_com_module);
 }
開發者ID:amjadtbssm,項目名稱:website,代碼行數:4,代碼來源:graphviz_api.php

示例6: GSegment

 /**
  * GSegment constructor.
  */
 function GSegment()
 {
     parent::Graph();
 }
開發者ID:madseller,項目名稱:coperio,代碼行數:7,代碼來源:gsegment.php

示例7: Digraph

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

示例8: GPolygon

 /**
  * GPolygon constructor.
  *
  * @param array $values Polygon coordinates
  */
 function GPolygon($values = array())
 {
     parent::Graph();
     $this->setCoordinates($values);
 }
開發者ID:madseller,項目名稱:coperio,代碼行數:10,代碼來源:gpolygon.php

示例9: GPoint

 /**
  * GPoint constructor.
  */
 function GPoint()
 {
     parent::Graph();
     $this->_size = 7;
 }
開發者ID:madseller,項目名稱:coperio,代碼行數:8,代碼來源:gpoint.php


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