minor bug fix
[openemr.git] / library / openflashchart / php-ofc-library / ofc_y_axis_labels.php
blobc0708ab21979fe4796386d60959f0cd7662e5e49
1 <?php
3 class y_axis_labels
5 function y_axis_labels(){}
7 /**
8 * @param $steps which labels are generated
9 */
10 function set_steps( $steps )
12 $this->steps = $steps;
15 /**
17 * @param $labels as an array of [y_axis_label or string]
19 function set_labels( $labels )
21 $this->labels = $labels;
24 function set_colour( $colour )
26 $this->colour = $colour;
29 /**
30 * font size in pixels
32 function set_size( $size )
34 $this->size = $size;
37 /**
38 * rotate labels
40 function set_vertical()
42 $this->rotate = 270;
45 function rotate( $angle )
47 $this->rotate = $angle;
50 /**
51 * @param $text default text that all labels inherit
53 function set_text( $text )
55 $this->text = $text;