Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotFontNodeClass.php 1.57 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php

require_once("RequestOutputPlotFontNodeClass.php");

abstract class RequestOutputPlotFontStyle
{
	const UPRIGHT = "upright";
	const ITALIC  = "italic";
	const OBLIQUE = "oblique";
}

abstract class RequestOutputPlotFontWeight
{
	const MEDIUM = "medium";
	const BOLD   = "bold";
}

define ("REQUESTOUTPUTPLOTFONT_NODENAME", "font");
define ("REQUESTOUTPUTPLOTFONT_NAME", "name");
define ("REQUESTOUTPUTPLOTFONT_SIZE", "size");
define ("REQUESTOUTPUTPLOTFONT_STYLE", "style");
define ("REQUESTOUTPUTPLOTFONT_WEIGHT", "weight");

/**
 * @class RequestOutputPlotFontNodeClass
 * @brief Definition of a font for an element of a plot request
 * @details
*/
class RequestOutputPlotFontNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTFONT_NODENAME);
	}

	public function setFontName($fontName)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_NAME, $fontName);
	}
	
	public function getFontName()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_NAME);
	}

	public function setSize($size)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_SIZE, $size);
	}
	
	public function getSize()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_SIZE);
	}
	
	public function setStyle($style)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_STYLE, $style);
	}
	
	public function getStyle()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_STYLE);
	}
	
	public function setWeight($weight)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_WEIGHT, $weight);
	}
	
	public function getWeight()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_WEIGHT);
	}
}

?>