本文整理汇总了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();
}
示例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);
}
示例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');
}
示例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();
}
示例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);
}
示例6: GSegment
/**
* GSegment constructor.
*/
function GSegment()
{
parent::Graph();
}
示例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);
}
示例8: GPolygon
/**
* GPolygon constructor.
*
* @param array $values Polygon coordinates
*/
function GPolygon($values = array())
{
parent::Graph();
$this->setCoordinates($values);
}
示例9: GPoint
/**
* GPoint constructor.
*/
function GPoint()
{
parent::Graph();
$this->_size = 7;
}