summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-14 13:04:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-14 13:04:49 +0000
commita4bf8e9d98c3c62e0bd2fbd847ac3f99cda3917b (patch)
tree100e34386d6bcc02d2265f8b805c8642659ec74a /frontends/php/include/classes.inc.php
parent8b2ebdc7165072f6c847dbef56eb2712b578eeca (diff)
downloadzabbix-a4bf8e9d98c3c62e0bd2fbd847ac3f99cda3917b.tar.gz
zabbix-a4bf8e9d98c3c62e0bd2fbd847ac3f99cda3917b.tar.xz
zabbix-a4bf8e9d98c3c62e0bd2fbd847ac3f99cda3917b.zip
- new draw type for graphs: Dot (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@913 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index 09a64f8f..732be9c5 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -290,6 +290,11 @@
ImageFilledPolygon($this->im,$a,4,$this->colors[$this->items[$item]["color"]]);
}
+ else if($this->items[$item]["drawtype"] == GRAPH_DRAW_TYPE_DOT)
+ {
+ ImageFilledRectangle($this->im,$x1-1,$y1-1,$x1+1,$y1+1,$this->colors[$this->items[$item]["color"]]);
+ ImageFilledRectangle($this->im,$x2-1,$y2-1,$x2+1,$y2+1,$this->colors[$this->items[$item]["color"]]);
+ }
}
// Calculation of maximum Y