ofc_area_base.php 949 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. class area_base
  3. {
  4. function area_base()
  5. {
  6. $tmp = 'fill-alpha';
  7. $this->$tmp = 0.35;
  8. $this->values = array();
  9. }
  10. function set_width( $w )
  11. {
  12. $this->width = $w;
  13. }
  14. function set_colour( $colour )
  15. {
  16. $this->colour = $colour;
  17. }
  18. function set_fill_colour( $colour )
  19. {
  20. $this->fill = $colour;
  21. }
  22. function set_fill_alpha( $alpha )
  23. {
  24. $tmp = "fill-alpha";
  25. $this->$tmp = $alpha;
  26. }
  27. function set_halo_size( $size )
  28. {
  29. $tmp = 'halo-size';
  30. $this->$tmp = $size;
  31. }
  32. function set_values( $v )
  33. {
  34. $this->values = $v;
  35. }
  36. function set_dot_size( $size )
  37. {
  38. $tmp = 'dot-size';
  39. $this->$tmp = $size;
  40. }
  41. function set_key( $text, $font_size )
  42. {
  43. $this->text = $text;
  44. $tmp = 'font-size';
  45. $this->$tmp = $font_size;
  46. }
  47. function set_tooltip( $tip )
  48. {
  49. $this->tip = $tip;
  50. }
  51. function set_loop()
  52. {
  53. $this->loop = true;
  54. }
  55. }