1<?php
2
3
4class ScaleStyle {
5    /**
6     * @todo The color, lineWidth and lineDotSize variables could all
7     * be combined into a single LineStyle class
8     */
9    public function __construct($scaleMode, Color $color, $drawTicks = true, $lineWidth = 1, $lineDotSize = 0) {
10        $this->scaleMode   = $scaleMode;
11        $this->color       = $color;
12        $this->drawTicks   = $drawTicks;
13        $this->lineWidth   = $lineWidth;
14        $this->lineDotSize = $lineDotSize;
15    }
16
17    static public function DefaultStyle() {
18        return new ScaleStyle(SCALE_NORMAL,
19                              new Color(150, 150, 150));
20    }
21
22    public function getScaleMode() {
23        return $this->scaleMode;
24    }
25
26    public function getColor() {
27        return $this->color;
28    }
29
30    public function getDrawTicks() {
31        return $this->drawTicks;
32    }
33
34    public function getLineWidth() {
35        return $this->lineWidth;
36    }
37
38    public function getLineDotSize() {
39        return $this->lineDotSize;
40    }
41
42    private $scaleMode;
43
44    private $color;
45
46    private $drawTicks;
47
48    private $lineWidth;
49
50    private $lineDotSize;
51}