ofc_scatter_line.php 790 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. class scatter_line
  3. {
  4. function scatter_line( $colour, $width )
  5. {
  6. $this->type = "scatter_line";
  7. $this->set_colour( $colour );
  8. $this->set_width( $width );
  9. }
  10. function set_default_dot_style( $style )
  11. {
  12. $tmp = 'dot-style';
  13. $this->$tmp = $style;
  14. }
  15. function set_colour( $colour )
  16. {
  17. $this->colour = $colour;
  18. }
  19. function set_width( $width )
  20. {
  21. $this->width = $width;
  22. }
  23. function set_values( $values )
  24. {
  25. $this->values = $values;
  26. }
  27. function set_step_horizontal()
  28. {
  29. $this->stepgraph = 'horizontal';
  30. }
  31. function set_step_vertical()
  32. {
  33. $this->stepgraph = 'vertical';
  34. }
  35. function set_key( $text, $font_size )
  36. {
  37. $this->text = $text;
  38. $tmp = 'font-size';
  39. $this->$tmp = $font_size;
  40. }
  41. }