Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotTitleNodeClass.php 1.24 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
<?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");
8c57155b   Benjamin Renard   Integration for t...
21
22
23
24
25
/**
 * @class RequestOutputPlotTitleNodeClass
 * @brief Definition of a title for a plot request
 * @details
*/
78a73e9a   Benjamin Renard   Integration for p...
26
class RequestOutputPlotTitleNodeClass extends RequestOutputPlotLabelNodeClass
8c57155b   Benjamin Renard   Integration for t...
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
{
	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);
	}
8c57155b   Benjamin Renard   Integration for t...
62
63
64
}

?>