Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLabelNodeClass.php 2.48 KB
78a73e9a   Benjamin Renard   Integration for p...
1
2
3
4
<?php

define ("REQUESTOUTPUTPLOTLABEL_FONTNAME", "fontName");
define ("REQUESTOUTPUTPLOTLABEL_FONTSIZE", "fontSize");
20e36076   Benjamin Renard   Update interface ...
5
6
define ("REQUESTOUTPUTPLOTLABEL_FONTSTYLE", "fontStyle");
define ("REQUESTOUTPUTPLOTLABEL_FONTWEIGHT", "fontWeight");
78a73e9a   Benjamin Renard   Integration for p...
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
define ("REQUESTOUTPUTPLOTLABEL_COLOR", "color");
define ("REQUESTOUTPUTPLOTLABEL_COLORMAPINDEX", "colorMapIndex");

/**
 * @class RequestOutputPlotTitleNodeClass
 * @brief Definition of a title for a plot request
 * @details
*/
class RequestOutputPlotLabelNodeClass extends NodeClass
{
	public function __construct($nodeName)
	{
		parent::__construct($nodeName);
	}
	
	public function setFontName($fontName)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_FONTNAME, $fontName);
	}
	
	public function getFontName()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_FONTNAME);
	}

	public function setFontSize($fontSize)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_FONTSIZE, $fontSize);
	}
	
	public function getFontSize()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_FONTSIZE);
	}
	
	public function setFontStyle($style)
	{
20e36076   Benjamin Renard   Update interface ...
44
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_FONTSTYLE, $style);
78a73e9a   Benjamin Renard   Integration for p...
45
46
47
48
	}
	
	public function getFontStyle()
	{
20e36076   Benjamin Renard   Update interface ...
49
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_FONTSTYLE);
78a73e9a   Benjamin Renard   Integration for p...
50
51
	}
	
20e36076   Benjamin Renard   Update interface ...
52
53
54
55
56
57
58
59
60
61
	public function setFontWeight($weight)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_FONTWEIGHT, $weight);
	}

	public function getFontWeight()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_FONTWEIGHT);
	}

78a73e9a   Benjamin Renard   Integration for p...
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
	public function setColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_COLOR, $color);
	}
	
	public function getColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_COLOR);
	}
	
	public function setColorMapIndex($colorMapIndex)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLABEL_COLORMAPINDEX, $colorMapIndex);
	}
	
	public function getColorMapIndex()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLABEL_COLORMAPINDEX);
	}
966bd5f8   Benjamin Renard   Add request to ge...
81
82
83
84
85
	
	public function loadFromNode($xmlNode)
	{
		$this->setFontName($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_FONTNAME));
		$this->setFontSize($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_FONTSIZE));
20e36076   Benjamin Renard   Update interface ...
86
87
		$this->setFontStyle($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_FONTSTYLE));
		$this->setFontWeight($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_FONTWEIGHT));
966bd5f8   Benjamin Renard   Add request to ge...
88
89
90
		$this->setColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_COLOR));
		$this->setColorMapIndex($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLABEL_COLORMAPINDEX));
	}
78a73e9a   Benjamin Renard   Integration for p...
91
92
}

20e36076   Benjamin Renard   Update interface ...
93
?>