3 include_once 'ofc_bar_base.php';
8 *@param $type as string. Can be any one of:
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)
22 $this->cascade
= (float)$cascade;
23 $this->delay
= (float)$delay;
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 )
37 if( isset( $bottom ) )
38 $this->bottom
= $bottom;
41 function set_colour( $colour )
43 $this->colour
= $colour;
46 function set_tooltip( $tip )
52 class bar
extends bar_base
61 class bar_glass
extends bar_base
65 $this->type
= "bar_glass";
70 class bar_cylinder
extends bar_base
72 function bar_cylinder()
74 $this->type
= "bar_cylinder";
79 class bar_cylinder_outline
extends bar_base
81 function bar_cylinder_outline()
83 $this->type
= "bar_cylinder_outline";
88 class bar_rounded_glass
extends bar_base
90 function bar_rounded_glass()
92 $this->type
= "bar_round_glass";
97 class bar_round
extends bar_base
101 $this->type
= "bar_round";
106 class bar_dome
extends bar_base
110 $this->type
= "bar_dome";
115 class bar_round3d
extends bar_base
117 function bar_round3d()
119 $this->type
= "bar_round3d";
124 class bar_3d
extends bar_base
128 $this->type
= "bar_3d";