43         $all = array(
"ne", 
"nw", 
"se", 
"sw");
    44         if (in_array($a_position, $all)) {
    45             $this->position = $a_position;
    59         $this->columns = $a_value;
    72         $this->margin_x = $a_x;
    73         $this->margin_y = $a_y;
    78         return array(
"x" => $this->margin_x, 
"y" => $this->margin_y);
    87             $this->background = $a_color;
   101         if ($a_value >= 0 && $a_value <= 1) {
   102             $this->opacity = $a_value;
   114             $this->border = $a_color;
   128         $this->container = trim($a_value);
   144         $a_options->show = 
true;
   150         $a_options->margin = array($margin[
"x"], $margin[
"y"]);
   153         $a_options->backgroundOpacity = str_replace(
",", 
".", (
string) $this->
getOpacity());
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static isValidColor(string $a_value)
Validate html color code. 
 
parseOptions(stdClass $a_options)
Convert (global) properties to flot config. 
 
setMargin(int $a_x, int $a_y)
 
setPosition(string $a_position)
 
getContainer()
Get container id. 
 
setLabelBorder(string $a_color)
 
setContainer(string $a_value)
Set container id. 
 
getBackground()
Get background color. 
 
getColumns()
Get number of columns. 
 
setColumns(int $a_value)
Set number of columns. 
 
setBackground(string $a_color)
Set background color. 
 
static renderColor(string $a_value, float $a_opacity=1)
Render html color code. 
 
setOpacity(float $a_value)