source: code/Website/php-ofc-library/ofc_bar_glass.php@ 7878

Last change on this file since 7878 was 7849, checked in by dennisw, 15 years ago
File size: 2.1 KB
Line 
1<?php
2
3include_once 'ofc_bar_base.php';
4
5class bar_on_show
6{
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'
15 *
16 * @param $cascade as float. Cascade in seconds
17 * @param $delay as float. Delay before animation starts in seconds.
18 */
19 function __construct($type, $cascade, $delay)
20 {
21 $this->type = $type;
22 $this->cascade = (float)$cascade;
23 $this->delay = (float)$delay;
24 }
25}
26
27class bar_value
28{
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.
32 */
33 function bar_value( $top, $bottom=null )
34 {
35 $this->top = $top;
36
37 if( isset( $bottom ) )
38 $this->bottom = $bottom;
39 }
40
41 function set_colour( $colour )
42 {
43 $this->colour = $colour;
44 }
45
46 function set_tooltip( $tip )
47 {
48 $this->tip = $tip;
49 }
50}
51
52class bar extends bar_base
53{
54 function bar()
55 {
56 $this->type = "bar";
57 parent::bar_base();
58 }
59}
60
61class bar_glass extends bar_base
62{
63 function bar_glass()
64 {
65 $this->type = "bar_glass";
66 parent::bar_base();
67 }
68}
69
70class bar_cylinder extends bar_base
71{
72 function bar_cylinder()
73 {
74 $this->type = "bar_cylinder";
75 parent::bar_base();
76 }
77}
78
79class bar_cylinder_outline extends bar_base
80{
81 function bar_cylinder_outline()
82 {
83 $this->type = "bar_cylinder_outline";
84 parent::bar_base();
85 }
86}
87
88class bar_rounded_glass extends bar_base
89{
90 function bar_rounded_glass()
91 {
92 $this->type = "bar_round_glass";
93 parent::bar_base();
94 }
95}
96
97class bar_round extends bar_base
98{
99 function bar_round()
100 {
101 $this->type = "bar_round";
102 parent::bar_base();
103 }
104}
105
106class bar_dome extends bar_base
107{
108 function bar_dome()
109 {
110 $this->type = "bar_dome";
111 parent::bar_base();
112 }
113}
114
115class bar_round3d extends bar_base
116{
117 function bar_round3d()
118 {
119 $this->type = "bar_round3d";
120 parent::bar_base();
121 }
122}
123
124class bar_3d extends bar_base
125{
126 function bar_3d()
127 {
128 $this->type = "bar_3d";
129 parent::bar_base();
130 }
131}
Note: See TracBrowser for help on using the repository browser.