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