42 $all = array(
"ne",
"nw",
"se",
"sw");
43 if(in_array((
string)$a_position, $all))
45 $this->position = (string)$a_position;
66 $this->columns = (int)$a_value;
87 $this->margin_x = (int)$a_x;
88 $this->margin_y = (int)$a_y;
98 return array(
"x"=>$this->margin_x,
"y"=>$this->margin_y);
110 $this->background = $a_color;
131 $a_value = (float)$a_value;
132 if($a_value >= 0 && $a_value <= 1)
134 $this->opacity = $a_value;
157 $this->border = $a_color;
178 $this->container = trim($a_value);
198 $a_options->show =
true;
204 $a_options->margin = array($margin[
"x"], $margin[
"y"]);
207 $a_options->backgroundOpacity = str_replace(
",",
".",$this->
getOpacity());
213 $a_options->container =
'#'.$container;
getLabelBorder()
Get label border.
setLabelBorder($a_color)
Set label border.
setMargin($a_x, $a_y)
Set margins.
setOpacity($a_value)
Set Opacity.
setContainer($a_value)
Set container id.
setColumns($a_value)
Set number of columns.
parseOptions(stdClass $a_options)
Convert (global) properties to flot config.
getContainer()
Get container id.
__construct()
Constructor.
static isValidColor($a_value)
Validate html color code.
setBackground($a_color)
Set background color.
static renderColor($a_value, $a_opacity=1)
Render html color code.
getBackground()
Get background color.
getColumns()
Get number of columns.
getPosition()
Get Position.
setPosition($a_position)
Set Position.