Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class scatter_line
|
---|
4 | {
|
---|
5 | function scatter_line( $colour, $width )
|
---|
6 | {
|
---|
7 | $this->type = "scatter_line";
|
---|
8 | $this->set_colour( $colour );
|
---|
9 | $this->set_width( $width );
|
---|
10 | }
|
---|
11 |
|
---|
12 | function set_default_dot_style( $style )
|
---|
13 | {
|
---|
14 | $tmp = 'dot-style';
|
---|
15 | $this->$tmp = $style;
|
---|
16 | }
|
---|
17 |
|
---|
18 | function set_colour( $colour )
|
---|
19 | {
|
---|
20 | $this->colour = $colour;
|
---|
21 | }
|
---|
22 |
|
---|
23 | function set_width( $width )
|
---|
24 | {
|
---|
25 | $this->width = $width;
|
---|
26 | }
|
---|
27 |
|
---|
28 | function set_values( $values )
|
---|
29 | {
|
---|
30 | $this->values = $values;
|
---|
31 | }
|
---|
32 |
|
---|
33 | function set_step_horizontal()
|
---|
34 | {
|
---|
35 | $this->stepgraph = 'horizontal';
|
---|
36 | }
|
---|
37 |
|
---|
38 | function set_step_vertical()
|
---|
39 | {
|
---|
40 | $this->stepgraph = 'vertical';
|
---|
41 | }
|
---|
42 |
|
---|
43 | function set_key( $text, $font_size )
|
---|
44 | {
|
---|
45 | $this->text = $text;
|
---|
46 | $tmp = 'font-size';
|
---|
47 | $this->$tmp = $font_size;
|
---|
48 | }
|
---|
49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.