RequestOutputPlotElementTimeNodeClass.php 1.04 KB
<?php

require_once("RequestOutputPlotElementNodeClass.php");

define ("REQUESTOUTPUTPLOTELEMENTTIME_NAME", "timePlot");

/**
 * @class RequestOutputPlotElementTimeNodeClass
 * @brief Definition of a time plot element for a panel of a plot request
 * @details
*/
class RequestOutputPlotElementTimeNodeClass extends RequestOutputPlotElementNodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTELEMENTTIME_NAME,true,true,true,false,false,false);
		//force time axis creation
		$this->getAxes()->getTimeAxis();
		//force color axis creation
		$this->getAxes()->getColorAxis();
	}

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

	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();
	}
}

?>