Example #1
0
 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();
 }
Example #2
0
 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);
 }
Example #3
0
 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');
 }
 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();
 }
Example #5
0
 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);
 }
Example #6
0
 function GanttGraph($aWidth = 0, $aHeight = 0, $aCachedName = "", $aTimeOut = 0, $aInline = true)
 {
     if ($aWidth == -1) {
         $aWidth = 0;
     }
     if ($aHeight == -1) {
         $aHeight = 0;
     }
     if ($aWidth < 0 || $aHeight < 0) {
         JpgraphError::RaiseL(6002);
     }
     Graph::Graph($aWidth, $aHeight, $aCachedName, $aTimeOut, $aInline);
     $this->scale = new GanttScale($this->img);
     $this->img->SetMargin(15, 17, 25, 15);
     $this->hgrid = new HorizontalGridLine();
     $this->scale->ShowHeaders(GANTT_HWEEK | GANTT_HDAY);
     $this->SetBox();
 }
Example #7
0
 /**
  * GSegment constructor.
  */
 function GSegment()
 {
     parent::Graph();
 }
Example #8
0
 /**
  * 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);
 }
Example #9
0
 /**
  * GPolygon constructor.
  *
  * @param array $values Polygon coordinates
  */
 function GPolygon($values = array())
 {
     parent::Graph();
     $this->setCoordinates($values);
 }
Example #10
0
 /**
  * GPoint constructor.
  */
 function GPoint()
 {
     parent::Graph();
     $this->_size = 7;
 }