Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotElementEpochNodeClass.php 1.38 KB
c0e7e5be   Benjamin Renard   Add integration f...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

require_once("RequestOutputPlotElementNodeClass.php");

define ("REQUESTOUTPUTPLOTELEMENTEPOCH_NAME", "epochPlot");
define ("REQUESTOUTPUTPLOTELEMENTEPOCH_CENTERTIMEID", "centerTimeId");

/**
 * @class RequestOutputPlotElementEpochNodeClass
 * @brief Definition of a epoch plot element for a panel of a plot request
 * @details
*/
class RequestOutputPlotElementEpochNodeClass extends RequestOutputPlotElementNodeClass
{
	public function __construct()
	{
f7e9b9f1   Benjamin Renard   Complete plot con...
17
		parent::__construct(REQUESTOUTPUTPLOTELEMENTEPOCH_NAME,true,false,false,false,false,false);
c0e7e5be   Benjamin Renard   Add integration f...
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
		//force epoch axis creation
		$this->getAxes()->getEpochAxis();
		//force color axis creation
		$this->getAxes()->getColorAxis();
	}

	public function getEpochAxis()
	{
		return $this->getAxes()->getEpochAxis();
	}

	public function addYAxis($id)
	{
		return $this->getAxes()->addDigitalAxis(RequestOutputPlotAxisTypeEnum::YAXIS,$id);
	}

	public function getYAxis($id)
	{
		return $this->getAxes()->getDigitalAxis(RequestOutputPlotAxisTypeEnum::YAXIS,$id);
	}

	public function getZAxis()
	{
		return $this->getAxes()->getColorAxis();
	}
	
	public function setCenterTimeId($centerTimeId)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTELEMENTEPOCH_CENTERTIMEID, $centerTimeId);
	}
	
	public function getCenterTimeId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTELEMENTEPOCH_CENTERTIMEID);
	}
}

?>