Class LineProperty
(Defined in: jpgraph.php : 2945)
 
 LineProperty 
 SetColor() 
 SetStyle() 
 SetWeight() 
 Show() 
 __construct() 
 

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

 

LineProperty ::
SetColor($aColor)
Set line color

ArgumentDefaultDescription
$aColor  Color

Description:
Set line color 

Example:

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

 

LineProperty ::
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:

Example:

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

 

LineProperty ::
SetWeight($aWeight)
Specify weight of the line

ArgumentDefaultDescription
$aWeight  Line width in pixels

Description:
Set line width 

Example:

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

 

LineProperty ::
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

 

LineProperty ::
__construct($aWeight, $aColor, $aStyle)
//===================================================// CLASS LineProperty// Description: Holds properties for a line//===================================================

ArgumentDefaultDescription
$aWeight 1 No description available
$aColor 'black' No description available
$aStyle 'solid' No description available

Description:
No description available.