RequestOutputPlotFillNodeClass.php
1.02 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
<?php
define ("REQUESTOUTPUTPLOTFILL_GREATERCOLOR", "colorGreater");
define ("REQUESTOUTPUTPLOTFILL_LESSCOLOR", "colorLess");
/**
* @class RequestOutputPlotFillNodeClass
* @brief Definition of fill for a plot
* @details
*/
class RequestOutputPlotFillNodeClass extends NodeClass
{
public function __construct($name)
{
parent::__construct($name);
}
public function setGreaterColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILL_GREATERCOLOR, $color);
}
public function getGreaterColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILL_GREATERCOLOR);
}
public function setLessColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTFILL_LESSCOLOR, $color);
}
public function getLessColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTFILL_LESSCOLOR);
}
public function loadFromNode($xmlNode)
{
$this->setGreaterColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_GREATERCOLOR));
$this->setLessColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_LESSCOLOR));
}
}
?>