RequestOutputPlotYSerieTimeTicksNodeClass.php 2.29 KB
<?php

define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP", "step");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER", "number");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR", "minor");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR", "color");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL", "symbol");
define ("REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL", "firstSymbol");

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

	public function getSymbol()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTYSERIETIMETICKS_SYMBOL);
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getFirstSymbol()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTYSERIETIMETICKS_FIRSTSYMBOL);
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getFont()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTFONT_NODENAME);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotFontNodeClass();
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function setStep($step)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP, $step);
	}
	
	public function getStep()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_STEP);
	}
	
	public function setNumber($number)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER, $number);
	}
	
	public function getNumber()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_NUMBER);
	}
	
	public function setMinor($minor)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR, $minor);
	}
	
	public function getMinor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_MINOR);
	}
	
	public function setColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR, $color);
	}
	
	public function getColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTYSERIETIMETICKS_COLOR);
	}
}

?>