RequestOutputPlotElementEpochNodeClass.php 1.38 KB
<?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()
	{
		parent::__construct(REQUESTOUTPUTPLOTELEMENTEPOCH_NAME,true,true,true,false,false,false);
		//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);
	}
}

?>