Class Progress
(Defined in: jpgraph_gantt.php : 3077)
 
 Progress 
 Set() 
 SetFillColor() 
 SetPattern() 
 

Class usage and Overview
Represents the progress bar inside the activity bar in Gantt Charts

 

See also related classes:
GanttGraph and GanttBar

 


Class Methods

 

Progress ::
Set($aProg)
Specify progress of activity in percent.

ArgumentDefaultDescription
$aProg  Progress in percent (0-1)

Description:
Specify progress of activity in percent. The shape of the progress bar can be specified with Progress::SetPattern() 
 
See also:

Example:

$bar->progress->Set(0.8);

 

Progress ::
SetFillColor($aColor)
Set fill (background) color for progress bar

ArgumentDefaultDescription
$aColor  Color

Description:
Set fill (background) color for progress bar 

Example:

$bar->progress->SetFillColor('white');

 

Progress ::
SetPattern($aPattern, $aColor, $aDensity)
Specify pattern class to use for progress bar

ArgumentDefaultDescription
$aPattern  Pattern
$aColor "blue" Color
$aDensity 98 Density

Description:
Specify pattern class to use for progress bar. Valid patterns for the first argument are:  
 
See also:

Example:

$activity->Set(0.8);
$activity->progress->SetPattern(BAND_RDIAG,"blue");