CLASS Progress
(Defined in: jpgraph_gantt.php : 3027)
 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

 

 

function 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
Progress::SetPattern

Example

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

 

 

function 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');

 

 

function 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
GanttBar::SetPattern

Example

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