commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / packages / OpenFlashChart / php-ofc-library / ofc_line_base.php
1 <?php
2
3 class line_base
4 {
5 function line_base()
6 {
7 $this->type = "line";
8 $this->text = "Page views";
9 $tmp = 'font-size';
10 $this->$tmp = 10;
11
12 $this->values = array();
13 }
14
15 function set_values( $v )
16 {
17 $this->values = $v;
18 }
19
20 /**
21 * Append a value to the line.
22 *
23 * @param mixed $v
24 */
25 function append_value($v)
26 {
27 $this->values[] = $v;
28 }
29
30 function set_width( $width )
31 {
32 $this->width = $width;
33 }
34
35 function set_colour( $colour )
36 {
37 $this->colour = $colour;
38 }
39
40 function set_dot_size( $size )
41 {
42 $tmp = 'dot-size';
43 $this->$tmp = $size;
44 }
45
46 function set_halo_size( $size )
47 {
48 $tmp = 'halo-size';
49 $this->$tmp = $size;
50 }
51
52 function set_key( $text, $font_size )
53 {
54 $this->text = $text;
55 $tmp = 'font-size';
56 $this->$tmp = $font_size;
57 }
58
59 function set_tooltip( $tip )
60 {
61 $this->tip = $tip;
62 }
63
64 function set_on_click( $text )
65 {
66 $tmp = 'on-click';
67 $this->$tmp = $text;
68 }
69
70 function loop()
71 {
72 $this->loop = true;
73 }
74
75 function line_style( $s )
76 {
77 $tmp = "line-style";
78 $this->$tmp = $s;
79 }
80
81 /**
82 * Sets the text for the line.
83 *
84 * @param string $text
85 */
86 function set_text($text)
87 {
88 $this->text = $text;
89 }
90
91
92 }