CLASS LineProperty (Defined in: jpgraph.php : 3137)

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

Argument | Default | Description
--- | --- | ---
$aColor |  | Color

Description
Set line color

Example

$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

Example

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

function SetWeight($aWeight)
Specify weight of the line

Argument | Default | Description
--- | --- | ---
$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

Argument | Default | Description
--- | --- | ---
$aShow | true | True=Display line

Description
Show line, default is to hide the line.

Example

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