ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChartDataLines Class Reference

Chart data lines series. More...

+ Inheritance diagram for ilChartDataLines:
+ Collaboration diagram for ilChartDataLines:

Public Member Functions

 setLineWidth ($a_value)
 Set line width.
 getLineWidth ()
 Get line width.
 setLineSteps ($a_value)
 Set line steps.
 getLineSteps ()
 Get line steps.
- Public Member Functions inherited from ilChartData
 setHidden ($a_value)
 Set hidden.
 isHidden ()
 Is hidden?
 setLabel ($a_value)
 Set label.
 getLabel ()
 Get label.
 addPoint ($a_x, $a_y=null)
 Set data.
 getData ()
 Get data.
 setFill ($a_value, $a_color=null)
 Set fill.
 getFill ()
 Get fill.
 parseData (array &$a_data)
 Convert data to flot config.
 parseGlobalOptions (stdClass $a_options, ilChart $a_chart)
 Convert (global) properties to flot config.

Protected Member Functions

 getTypeString ()
 Get series type.
 parseDataOptions (array &$a_options)
 Convert data options to flot config.

Protected Attributes

 $line_width
 $steps
- Protected Attributes inherited from ilChartData
 $type
 $label
 $data
 $fill
 $fill_color
 $hidden

Detailed Description

Chart data lines series.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 13 of file class.ilChartDataLines.php.

Member Function Documentation

ilChartDataLines::getLineSteps ( )

Get line steps.

Returns
bool

Definition at line 58 of file class.ilChartDataLines.php.

References $steps.

Referenced by parseDataOptions().

{
return $this->steps;
}

+ Here is the caller graph for this function:

ilChartDataLines::getLineWidth ( )

Get line width.

Returns
int

Definition at line 38 of file class.ilChartDataLines.php.

References $line_width.

Referenced by parseDataOptions().

{
}

+ Here is the caller graph for this function:

ilChartDataLines::getTypeString ( )
protected

Get series type.

Returns
string

Reimplemented from ilChartData.

Definition at line 18 of file class.ilChartDataLines.php.

{
return "lines";
}
ilChartDataLines::parseDataOptions ( array &  $a_options)
protected

Convert data options to flot config.

Parameters
array$a_options
ilChart$a_chart

Reimplemented from ilChartData.

Definition at line 63 of file class.ilChartDataLines.php.

References getLineSteps(), and getLineWidth().

{
$width = $this->getLineWidth();
if($width !== null)
{
$a_options["lineWidth"] = $width;
}
if($this->getLineSteps())
{
$a_options["steps"] = true;
}
}

+ Here is the call graph for this function:

ilChartDataLines::setLineSteps (   $a_value)

Set line steps.

Parameters
bool$a_value

Definition at line 48 of file class.ilChartDataLines.php.

{
$this->steps = (bool)$a_value;
}
ilChartDataLines::setLineWidth (   $a_value)

Set line width.

Parameters
int$a_value

Definition at line 28 of file class.ilChartDataLines.php.

{
$this->line_width = (int)$a_value;
}

Field Documentation

ilChartDataLines::$line_width
protected

Definition at line 15 of file class.ilChartDataLines.php.

Referenced by getLineWidth().

ilChartDataLines::$steps
protected

Definition at line 16 of file class.ilChartDataLines.php.

Referenced by getLineSteps().


The documentation for this class was generated from the following file: