Added a graphing functionality with Open Flash Chart, and added ability to graph...
[openemr.git] / library / openflashchart / php-ofc-library / ofc_bar_glass.php
blobe8335015199b438c22b6f66fb6250e5fc97f08ab
1 <?php
3 include_once 'ofc_bar_base.php';
5 class bar_on_show
7 /**
8 *@param $type as string. Can be any one of:
9 * - 'pop-up'
10 * - 'drop'
11 * - 'fade-in'
12 * - 'grow-up'
13 * - 'grow-down'
14 * - 'pop'
16 * @param $cascade as float. Cascade in seconds
17 * @param $delay as float. Delay before animation starts in seconds.
19 function __construct($type, $cascade, $delay)
21 $this->type = $type;
22 $this->cascade = (float)$cascade;
23 $this->delay = (float)$delay;
27 class bar_value
29 /**
30 * @param $top as integer. The Y value of the top of the bar
31 * @param OPTIONAL $bottom as integer. The Y value of the bottom of the bar, defaults to Y min.
33 function bar_value( $top, $bottom=null )
35 $this->top = $top;
37 if( isset( $bottom ) )
38 $this->bottom = $bottom;
41 function set_colour( $colour )
43 $this->colour = $colour;
46 function set_tooltip( $tip )
48 $this->tip = $tip;
52 class bar extends bar_base
54 function bar()
56 $this->type = "bar";
57 parent::bar_base();
61 class bar_glass extends bar_base
63 function bar_glass()
65 $this->type = "bar_glass";
66 parent::bar_base();
70 class bar_cylinder extends bar_base
72 function bar_cylinder()
74 $this->type = "bar_cylinder";
75 parent::bar_base();
79 class bar_cylinder_outline extends bar_base
81 function bar_cylinder_outline()
83 $this->type = "bar_cylinder_outline";
84 parent::bar_base();
88 class bar_rounded_glass extends bar_base
90 function bar_rounded_glass()
92 $this->type = "bar_round_glass";
93 parent::bar_base();
97 class bar_round extends bar_base
99 function bar_round()
101 $this->type = "bar_round";
102 parent::bar_base();
106 class bar_dome extends bar_base
108 function bar_dome()
110 $this->type = "bar_dome";
111 parent::bar_base();
115 class bar_round3d extends bar_base
117 function bar_round3d()
119 $this->type = "bar_round3d";
120 parent::bar_base();
124 class bar_3d extends bar_base
126 function bar_3d()
128 $this->type = "bar_3d";
129 parent::bar_base();