Added a graphing functionality with Open Flash Chart, and added ability to graph...
[openemr.git] / library / openflashchart / php-ofc-library / ofc_arrow.php
blob3c2c6e9dc31cc95da4a7d66a7535104a4aa9d450
1 <?php
3 class ofc_arrow
5 /**
6 *@param $x as number. Start x position
7 *@param $y as number. Start y position
8 *@param $a as number. End x position
9 *@param $b as number. End y position
10 *@param $colour as string.
11 *@param $barb_length as number. Length of the barbs in pixels.
13 function ofc_arrow($x, $y, $a, $b, $colour, $barb_length=10)
15 $this->type = "arrow";
16 $this->start = array("x"=>$x, "y"=>$y);
17 $this->end = array("x"=>$a, "y"=>$b);
18 $this->colour($colour);
19 $this->{"barb-length"} = $barb_length;
22 function colour( $colour )
24 $this->colour = $colour;
25 return $this;