Class GanttVLine Extends GanttPlotObject
(Defined in: jpgraph_gantt.php : 3567)

GanttVLine | GanttPlotObject
SetDayOffset() SetTitleMargin() SetWeight() __construct() | SetCaptionMargin() SetConstrain() SetCSIMAlt() SetCSIMTarget() SetLabelLeftMargin()

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

GanttVLine ::
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.

Example:

// Draw line in the middle of the day
$line->SetDayOffset(0.5);

GanttVLine ::
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.

Example:

$line->SetTitleMargin(20);

GanttVLine ::
SetWeight($aWeight)

Argument | Default | Description
--- | --- | ---
$aWeight |  | No description available

Description:
No description available.

GanttVLine ::
__construct($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 | "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:

- Image::SetLineStyle()

Example:

$line = new GanttVLine('2002-11-02','System test starts','darkblue',2,'solid');
$granttgraph->Add($line);