RequestOutputPlotParamsLegendNodeClass.php
3.41 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_NAME", "paramsLegend");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_TYPE", "type");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWPARAMINFO", "showParamInfo");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWINTERVALINFO", "showIntervalInfo");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_INTERVALINFOTYPE", "intervalInfoType");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_POSITION", "position");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_DEFAULTTEXTCOLOR", "defaultTextColor");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERVISIBLE", "borderVisible");
define ("REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERCOLOR", "borderColor");
abstract class RequestOutputPlotParamsLegendTypeEnum
{
const TEXTLINESYMBOL = "text-line-symbol";
const TEXTONLY = "text-only";
}
abstract class RequestOutputPlotParamsLegendPositionEnum
{
const INSIDE = "inside";
const OUTSIDE = "outside";
}
abstract class RequestOutputPlotParamsLegendIntervalInfoTypeEnum
{
const INDEX = "index";
const STARTSTOP = "start-stop";
}
/**
* @class RequestOutputPlotParamsLegendNodeClass
* @brief Definition of a "params legend" element for a plot
* @details
*/
class RequestOutputPlotParamsLegendNodeClass extends NodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPLOTPARAMSLEGEND_NAME);
}
public function setType($type)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_TYPE, $type);
}
public function getType()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_TYPE);
}
public function setShowParamInfo($show)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWPARAMINFO, $show);
}
public function getShowParamInfo()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWPARAMINFO);
}
public function setShowIntervalInfo($show)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWINTERVALINFO, $show);
}
public function getShowIntervalInfo()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_SHOWINTERVALINFO);
}
public function setIntervalInfoType($type)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_INTERVALINFOTYPE, $type);
}
public function getIntervalInfoType()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_INTERVALINFOTYPE);
}
public function setPosition($position)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_POSITION, $position);
}
public function getPosition()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_POSITION);
}
public function setDefaultTextColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_DEFAULTTEXTCOLOR, $color);
}
public function getDefaultTextColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_DEFAULTTEXTCOLOR);
}
public function setBorderVisible($visible)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERVISIBLE, $visible);
}
public function getBorderVisible()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERVISIBLE);
}
public function setBorderColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERCOLOR, $color);
}
public function getBorderColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTPARAMSLEGEND_BORDERCOLOR);
}
public function getFont()
{
$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTPARAMSLEGEND_FONT);
if (!isset($node))
{
$node = new RequestOutputPlotFontNodeClass();
$this->addChild($node);
}
return $node;
}
}
?>