Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ofc_bar_glass.php « php-ofc-library « open-flash-chart « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc330d3c7422159df043fa395ad564c6706fd8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php

include_once dirname(__FILE__) . '/ofc_bar_base.php';

class bar_on_show
{
	/**
	 *@param $type as string. Can be any one of:
	 * - 'pop-up'
	 * - 'drop'
	 * - 'fade-in'
	 * - 'grow-up'
	 * - 'grow-down'
	 * - 'pop'
	 *
	 * @param $cascade as float. Cascade in seconds
	 * @param $delay as float. Delay before animation starts in seconds.
	 */
	function __construct($type, $cascade, $delay)
	{
		$this->type = $type;
		$this->cascade = (float)$cascade;
		$this->delay = (float)$delay;
	}
}

class bar_value
{
	/**
	 * @param $top as integer. The Y value of the top of the bar
	 * @param OPTIONAL $bottom as integer. The Y value of the bottom of the bar, defaults to Y min.
	 */
	function bar_value( $top, $bottom=null )
	{
		$this->top = $top;
		
		if( isset( $bottom ) )
			$this->bottom = $bottom;
	}
	
	function set_colour( $colour )
	{
		$this->colour = $colour;
	}
	
	function set_tooltip( $tip )
	{
		$this->tip = $tip;
	}
}

class bar extends bar_base
{
	function bar()
	{
		$this->type      = "bar";
		parent::bar_base();
	}
}

class bar_glass extends bar_base
{
	function bar_glass()
	{
		$this->type      = "bar_glass";
		parent::bar_base();
	}
}

class bar_cylinder extends bar_base
{
	function bar_cylinder()
	{
		$this->type      = "bar_cylinder";
		parent::bar_base();
	}
}

class bar_cylinder_outline extends bar_base
{
	function bar_cylinder_outline()
	{
		$this->type      = "bar_cylinder_outline";
		parent::bar_base();
	}
}

class bar_rounded_glass extends bar_base
{
	function bar_rounded_glass()
	{
		$this->type      = "bar_round_glass";
		parent::bar_base();
	}
}

class bar_round extends bar_base
{
	function bar_round()
	{
		$this->type      = "bar_round";
		parent::bar_base();
	}
}

class bar_dome extends bar_base
{
	function bar_dome()
	{
		$this->type      = "bar_dome";
		parent::bar_base();
	}
}

class bar_round3d extends bar_base
{
	function bar_round3d()
	{
		$this->type      = "bar_round3d";
		parent::bar_base();
	}
}

class bar_3d extends bar_base
{
	function bar_3d()
	{
		$this->type      = "bar_3d";
		parent::bar_base();
	}
}