Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotFillNodeClass.php 1.02 KB
bbe4d005   Benjamin Renard   Integration for f...
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
<?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);
	}
966bd5f8   Benjamin Renard   Add request to ge...
37
38
39
40
41
42
	
	public function loadFromNode($xmlNode)
	{
		$this->setGreaterColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_GREATERCOLOR));
		$this->setLessColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_LESSCOLOR));
	}
bbe4d005   Benjamin Renard   Integration for f...
43
44
45
}

?>