CLASS LineProperty
(Defined in: jpgraph.php : 2735) 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
Argument | Default | Description |
$aColor
| | Color |
Description
Set line color
$gantgraph->grid->SetColor('darkgrey');
function SetStyle($aStyle)
Set line style
Argument | Default | Description |
$aStyle
| | Line style |
Description
Linestyle for lines. Valid linestyles are:
'solid', 'dotted', 'dashed'
The default line style is 'solid'
See also
Image::SetLineStyle
$gantgraph->grid->SetColor('darkgrey');
function SetWeight($aWeight)
Specify weight of the line
Argument | Default | Description |
$aWeight
| | Line width in pixels |
Description
Set line width
$gantgraph->grid->SetWeight(2);
function Show($aShow)
Determine if the line should be hidden or not
Argument | Default | Description |
$aShow
|
true
| True=Display line |
Description
Show line, default is to hide the line.
$gantgraph->grid->Show(false); // Hide the grid