RequestOutputPlotYSerieTimeTicksNodeClass.php
2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP", "step");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER", "number");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR", "minor");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR", "color");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL", "symbol");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL", "firstSymbol");
/**
* @class RequestOutputPlotYSerieTimeTicksNodeClass
* @brief Definition of time ticks element for a yserie of a plot
* @details
*/
class RequestOutputPlotYSerieTimeTicksNodeClass extends NodeClass
{
public function __construct($name)
{
parent::__construct($name);
}
public function getSymbol()
{
$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL);
if (!isset($node))
{
$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL);
$this->addChild($node);
}
return $node;
}
public function getFirstSymbol()
{
$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL);
if (!isset($node))
{
$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL);
$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)
{
$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP, $step);
}
public function getStep()
{
return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP);
}
public function setNumber($number)
{
$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER, $number);
}
public function getNumber()
{
return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER);
}
public function setMinor($minor)
{
$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR, $minor);
}
public function getMinor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR);
}
public function setColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR, $color);
}
public function getColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR);
}
}
?>