CLASS LineProperty
(Defined in: jpgraph.php : 2735)
 LineProperty 
 SetColor() 
 SetStyle() 
 SetWeight() 
 Show() 
 

Class usage and Overview
Property class to define properties for a line. Currently used only by Gantt chart to specify the grid line properties.

 


Class Methods

 

 

function SetColor($aColor)
Set line color

ArgumentDefaultDescription
$aColor  Color

Description
Set line color 

Example

$gantgraph->grid->SetColor('darkgrey');

 

 

function SetStyle($aStyle)
Set line style

ArgumentDefaultDescription
$aStyle  Line style

Description
Linestyle for lines. Valid linestyles are:
'solid', 'dotted', 'dashed'

The default line style is 'solid' 
 

See also
Image::SetLineStyle

Example

$gantgraph->grid->SetColor('darkgrey');

 

 

function SetWeight($aWeight)
Specify weight of the line

ArgumentDefaultDescription
$aWeight  Line width in pixels

Description
Set line width 

Example

$gantgraph->grid->SetWeight(2);

 

 

function Show($aShow)
Determine if the line should be hidden or not

ArgumentDefaultDescription
$aShow true True=Display line

Description
Show line, default is to hide the line. 

Example

$gantgraph->grid->Show(false); // Hide the grid