RequestOutputPlotTitleNodeClass.php
2.55 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
require_once("RequestOutputPlotTitleNodeClass.php");
abstract class RequestOutputPlotTitlePosition
{
const TOP = "top";
const BOTTOM = "bottom";
}
abstract class RequestOutputPlotTitleAlign
{
const CENTER = "center";
const LEFT = "left";
const RIGHT = "right";
}
define ("REQUESTOUTPUTPLOTTITLE_NAME", "title");
define ("REQUESTOUTPUTPLOTTITLE_POSITION", "position");
define ("REQUESTOUTPUTPLOTTITLE_ALIGN", "align");
define ("REQUESTOUTPUTPLOTTITLE_FONTNAME", "fontName");
define ("REQUESTOUTPUTPLOTTITLE_FONTSIZE", "fontSize");
define ("REQUESTOUTPUTPLOTTITLE_STYLE", "style");
define ("REQUESTOUTPUTPLOTTITLE_COLOR", "color");
define ("REQUESTOUTPUTPLOTTITLE_COLORMAPINDEX", "colorMapIndex");
/**
* @class RequestOutputPlotTitleNodeClass
* @brief Definition of a title for a plot request
* @details
*/
class RequestOutputPlotTitleNodeClass extends NodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPLOTTITLE_NAME);
}
public function setText($text)
{
$this->setValue($text);
}
public function getText()
{
return $this->getValue();
}
public function setPosition($position)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_POSITION, $position);
}
public function getPosition()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_POSITION);
}
public function setAlign($align)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_ALIGN, $align);
}
public function getAlign()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_ALIGN);
}
public function setFontName($fontName)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_FONTNAME, $fontName);
}
public function getFontName()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_FONTNAME);
}
public function setFontSize($fontSize)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_FONTSIZE, $fontSize);
}
public function getFontSize()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_FONTSIZE);
}
public function setFontStyle($style)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_STYLE, $style);
}
public function getFontStyle()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_STYLE);
}
public function setColor($color)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_COLOR, $color);
}
public function getColor()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_COLOR);
}
public function setColorMapIndex($colorMapIndex)
{
$this->setAttribute(REQUESTOUTPUTPLOTTITLE_COLORMAPINDEX, $colorMapIndex);
}
public function getColorMapIndex()
{
return $this->getAttribute(REQUESTOUTPUTPLOTTITLE_COLORMAPINDEX);
}
}
?>