Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotSerieTimeTicksNodeClass.php 2.27 KB
f012b419   Benjamin Renard   Add integration f...
1
2
<?php

26a23052   Benjamin Renard   Add Interval Tick...
3
4
5
6
7
8
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_STEP", "step");
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_NUMBER", "number");
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_MINOR", "minor");
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_COLOR", "color");
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_SYMBOL", "symbol");
define ("REQUESTOUTPUTPLOTSERIETIMETICKS_FIRSTSYMBOL", "firstSymbol");
f012b419   Benjamin Renard   Add integration f...
9
10

/**
26a23052   Benjamin Renard   Add Interval Tick...
11
12
 * @class RequestOutputPlotSerieTimeTicksNodeClass
 * @brief Definition of time ticks element for a serie of a plot
f012b419   Benjamin Renard   Add integration f...
13
14
 * @details
 */
26a23052   Benjamin Renard   Add Interval Tick...
15
class RequestOutputPlotSerieTimeTicksNodeClass extends NodeClass
f012b419   Benjamin Renard   Add integration f...
16
17
18
19
20
21
22
23
{
	public function __construct($name)
	{
		parent::__construct($name);
	}

	public function getSymbol()
	{
26a23052   Benjamin Renard   Add Interval Tick...
24
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTSERIETIMETICKS_SYMBOL);
f012b419   Benjamin Renard   Add integration f...
25
26
27
	
		if (!isset($node))
		{
26a23052   Benjamin Renard   Add Interval Tick...
28
			$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTSERIETIMETICKS_SYMBOL);
f012b419   Benjamin Renard   Add integration f...
29
30
31
32
33
34
35
36
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getFirstSymbol()
	{
26a23052   Benjamin Renard   Add Interval Tick...
37
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTSERIETIMETICKS_FIRSTSYMBOL);
f012b419   Benjamin Renard   Add integration f...
38
39
40
	
		if (!isset($node))
		{
26a23052   Benjamin Renard   Add Interval Tick...
41
			$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTSERIETIMETICKS_FIRSTSYMBOL);
f012b419   Benjamin Renard   Add integration f...
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getFont()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTFONT_NODENAME);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotFontNodeClass();
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function setStep($step)
	{
26a23052   Benjamin Renard   Add Interval Tick...
63
		$this->setAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_STEP, $step);
f012b419   Benjamin Renard   Add integration f...
64
65
66
67
	}
	
	public function getStep()
	{
26a23052   Benjamin Renard   Add Interval Tick...
68
		return $this->getAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_STEP);
f012b419   Benjamin Renard   Add integration f...
69
70
71
72
	}
	
	public function setNumber($number)
	{
26a23052   Benjamin Renard   Add Interval Tick...
73
		$this->setAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_NUMBER, $number);
f012b419   Benjamin Renard   Add integration f...
74
75
76
77
	}
	
	public function getNumber()
	{
26a23052   Benjamin Renard   Add Interval Tick...
78
		return $this->getAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_NUMBER);
f012b419   Benjamin Renard   Add integration f...
79
80
81
82
	}
	
	public function setMinor($minor)
	{
26a23052   Benjamin Renard   Add Interval Tick...
83
		$this->setAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_MINOR, $minor);
f012b419   Benjamin Renard   Add integration f...
84
85
86
87
	}
	
	public function getMinor()
	{
26a23052   Benjamin Renard   Add Interval Tick...
88
		return $this->getAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_MINOR);
f012b419   Benjamin Renard   Add integration f...
89
90
91
92
	}
	
	public function setColor($color)
	{
26a23052   Benjamin Renard   Add Interval Tick...
93
		$this->setAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_COLOR, $color);
f012b419   Benjamin Renard   Add integration f...
94
95
96
97
	}
	
	public function getColor()
	{
26a23052   Benjamin Renard   Add Interval Tick...
98
		return $this->getAttribute(REQUESTOUTPUTPLOTSERIETIMETICKS_COLOR);
f012b419   Benjamin Renard   Add integration f...
99
100
101
102
	}
}

?>