Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotMarginsNodeClass.php 1.12 KB
8c57155b   Benjamin Renard   Integration for t...
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


<?php

define ("REQUESTOUTPUTPLOTMARGINS_NAME", "margin");
define ("REQUESTOUTPUTPLOTMARGINS_HORIZONTAL", "x");
define ("REQUESTOUTPUTPLOTMARGINS_VERTIVAL", "y");

/**
 * @class RequestOutputPlotMarginsNodeClass
 * @brief Definition of margins for a page of a plot request
 * @details
 */
class RequestOutputPlotMarginsNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTMARGINS_NAME);
	}
	
	public function setHorizontal($horizontal)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTMARGINS_HORIZONTAL, $horizontal);
	}
	
	public function getHorizontal()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTMARGINS_HORIZONTAL);
	}
	
	public function setVertical($vertical)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTMARGINS_VERTIVAL, $vertical);
	}
	
	public function getVertical()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTMARGINS_VERTIVAL);
	}
966bd5f8   Benjamin Renard   Add request to ge...
40
41
42
43
44
45
	
	public function loadFromNode($xmlNode)
	{
		$this->setHorizontal($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTMARGINS_HORIZONTAL));
		$this->setVertical($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTMARGINS_VERTIVAL));
	}
8c57155b   Benjamin Renard   Integration for t...
46
47
48
}

?>