(Defined in: jpgraph_gantt.php : 3567)
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
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);
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);
Argument | Default | Description |
$aWeight
| | No description available |
Description:
No description available.
Create a new vertical line in the Gantt graph
Argument | Default | Description |
$aDate
| | Date where the line should be |
$aTitle
|
""
| Title of line |
$aColor
|
"darkred"
| Color for line |
$aWeight
|
2
| Line weight |
$aStyle
|
"solid"
| 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:
$line = new GanttVLine('2002-11-02','System test starts','darkblue',2,'solid');
$granttgraph->Add($line);