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

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

Description:
Set line color

Example:

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

LineProperty ::
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');

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

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

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

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

Argument | Default | Description
--- | --- | ---
$aWeight | 1 | No description available
$aColor | 'black' | No description available
$aStyle | 'solid' | No description available

Description:
No description available.