(Defined in: jpgraph_gantt.php : 3474) Class usage and Overview
This class represents a vertical line on the gantt scale. It can for example be used to illustrate the boundaries between different phases in a project plan.
To access the title property just use the 'title' property of the line, for example
$line = new GantVLine(.....);
$line->title->SetFont(FF_FONT1, FS_BOLD);
$ganttgraph->Add($line);
   
See also related classes:
GanttGraph, GanttBar and MileStone   
Class Methods
  
   
function GanttVLine($aDate,$aTitle,$aColor,$aWeight,$aStyle)
Create a new vertical line in the Gantt graph 
| Argument | Default | Description | 
|---|
| $aDate |  | Date where the line should be | 
| $aTitle | "" | Title of line | 
| $aColor | "black" | Color for line | 
| $aWeight | 3 | Line weight | 
| $aStyle | "dashed" | Line style (dotted, slashed etc) | 
Description
Create a new verticla line according to specification that later on can be added to the gantt graph vis its Add() method. 
   See also
Image::SetLineStyle
$line = new GanttVLine('2002-11-02','System test starts','darkblue',2,'solid');
$granttgraph->Add($line);
  
   
function SetDayOffset($aOff)
Specify where in the single day the line sould be drawn. 
| Argument | Default | Description | 
|---|
| $aOff | 0.5 | Fraction of day (0,1) | 
Description
Specify where in the single day the line sould be drawn.	 
// Draw line in the middle of the day
$line->SetDayOffset(0.5);
  
   
function SetTitleMargin($aMarg)
Set distance between end of line and title.
| Argument | Default | Description | 
|---|
| $aMarg |  | Margin in pixels | 
Description
Set distance between end of line and title. 
$line->SetTitleMargin(20);