Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelBoundsNodeClass.php 1.73 KB
c0e7e5be   Benjamin Renard   Add integration 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php

define ("REQUESTOUTPUTPLOTPANELBOUNDS_NAME", "bounds");
define ("REQUESTOUTPUTPLOTPANELBOUNDS_X", "x");
define ("REQUESTOUTPUTPLOTPANELBOUNDS_Y", "y");
define ("REQUESTOUTPUTPLOTPANELBOUNDS_WIDTH", "width");
define ("REQUESTOUTPUTPLOTPANELBOUNDS_HEIGHT", "height");

/**
 * @class RequestOutputPlotPanelBoundsNodeClass
 * @brief Definition of panel bounds for a plot request
 * @details
*/
class RequestOutputPlotPanelBoundsNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTPANELBOUNDS_NAME);
	}

	public function setX($x)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_X, $x);
	}
	
	public function getX()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_X);
	}
	
	public function setY($y)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_Y, $y);
	}
	
	public function getY()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_Y);
	}
	
	public function setWidth($width)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_WIDTH, $width);
	}
	
	public function getWidth()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_WIDTH);
	}
	
	public function setHeight($height)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_HEIGHT, $height);
	}
	
	public function getHeight()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTPANELBOUNDS_HEIGHT);
	}
966bd5f8   Benjamin Renard   Add request to ge...
60
61
62
63
64
65
66
67
	
	public function loadFromNode($xmlNode)
	{
		$this->setX($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTPANELBOUNDS_X));
		$this->setY($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTPANELBOUNDS_Y));
		$this->setWidth($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTPANELBOUNDS_WIDTH));
		$this->setHeight($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTPANELBOUNDS_HEIGHT));
	}
c0e7e5be   Benjamin Renard   Add integration f...
68
69
70
}

?>