Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotSymbolNodeClass.php 1.55 KB
4ede4320   Benjamin Renard   Integration for s...
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
<?php

define ("REQUESTOUTPUTPLOTSYMBOL_TYPE", "type");
define ("REQUESTOUTPUTPLOTSYMBOL_SIZE", "size");
define ("REQUESTOUTPUTPLOTSYMBOL_COLOR", "color");

abstract class RequestOutputPlotSymbolTypeEnum
{
	const NO           = "no";
	const DOT          = "dot";
	const PLUS         = "plus";
	const WILDCARD     = "wildcard";
	const CIRCLE       = "circle";
	const CRUX         = "crux";
	const SQUARE       = "square";
	const TRIANGLE     = "triangle";
	const CRUXINCIRCLE = "crux-in-circle";
	const DOTINCIRCLE  = "dot-in-circle";
	const DIAMOND      = "diamond";
	const STAR         = "star";
	const DAVIDSTAR    = "david-star";
	const FULLSQUARE   = "full-square";
	const FULLCIRCLE   = "full-circle";
	const FULLSTAR     = "full-star";
}

/**
 * @class RequestOutputPlotSymbolNodeClass
 * @brief Definition of a symbol element for a plot
 * @details
 */
class RequestOutputPlotSymbolNodeClass extends NodeClass
{
	public function __construct($name)
	{
		parent::__construct($name);
	}

	public function setType($type)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_TYPE, $type);
	}
	
	public function getType()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_TYPE);
	}
	
	public function setSize($size)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_SIZE, $size);
	}
	
	public function getSize()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_SIZE);
	}
	
	public function setColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_COLOR, $color);
	}
	
	public function getColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_COLOR);
	}
}

?>