42 $all =
array(
"ne",
"nw",
"se",
"sw");
43 if (in_array((
string) $a_position, $all)) {
44 $this->position = (
string) $a_position;
65 $this->
columns = (int) $a_value;
86 $this->margin_x = (int) $a_x;
87 $this->margin_y = (int) $a_y;
97 return array(
"x"=>$this->margin_x,
"y"=>$this->margin_y);
108 $this->background = $a_color;
129 $a_value = (float) $a_value;
130 if ($a_value >= 0 && $a_value <= 1) {
131 $this->opacity = $a_value;
153 $this->border = $a_color;
174 $this->container = trim($a_value);
194 $a_options->show =
true;
200 $a_options->margin =
array($margin[
"x"], $margin[
"y"]);
203 $a_options->backgroundOpacity = str_replace(
",",
".", $this->
getOpacity());
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.
Play around with inserting and removing rows and columns
static isValidColor($a_value)
Validate html color code.
Create styles array
The data for the language used.
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.