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_x_axis_labels.php
1 <?php
2
3 class x_axis_labels
4 {
5 function x_axis_labels(){}
6
7 /**
8 * @param $steps which labels are generated
9 */
10 function set_steps( $steps )
11 {
12 $this->steps = $steps;
13 }
14
15 /**
16 * @param $steps as integer which labels are visible
17 */
18 function visible_steps( $steps )
19 {
20 $this->{"visible-steps"} = $steps;
21 return $this;
22 }
23
24 /**
25 *
26 * @param $labels as an array of [x_axis_label or string]
27 */
28 function set_labels( $labels )
29 {
30 $this->labels = $labels;
31 }
32
33 function set_colour( $colour )
34 {
35 $this->colour = $colour;
36 }
37
38 /**
39 * font size in pixels
40 */
41 function set_size( $size )
42 {
43 $this->size = $size;
44 }
45
46 /**
47 * rotate labels
48 */
49 function set_vertical()
50 {
51 $this->rotate = 270;
52 }
53
54 /**
55 * @param @angle as real. The angle of the text.
56 */
57 function rotate( $angle )
58 {
59 $this->rotate = $angle;
60 }
61
62 /**
63 * @param $text as string. Replace and magic variables with actual x axis position.
64 */
65 function text( $text )
66 {
67 $this->text = $text;
68 }
69 }