RequestOutputPlotFillNodeClass.php 1.02 KB
<?php

define ("REQUESTOUTPUTPLOTFILL_GREATERCOLOR", "colorGreater");
define ("REQUESTOUTPUTPLOTFILL_LESSCOLOR", "colorLess");

/**
 * @class RequestOutputPlotFillNodeClass
 * @brief Definition of fill for a plot
 * @details
 */
class RequestOutputPlotFillNodeClass extends NodeClass
{
	public function __construct($name)
	{
		parent::__construct($name);
	}
	
	public function setGreaterColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFILL_GREATERCOLOR, $color);
	}
	
	public function getGreaterColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFILL_GREATERCOLOR);
	}
	
	public function setLessColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFILL_LESSCOLOR, $color);
	}
	
	public function getLessColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFILL_LESSCOLOR);
	}
	
	public function loadFromNode($xmlNode)
	{
		$this->setGreaterColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_GREATERCOLOR));
		$this->setLessColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILL_LESSCOLOR));
	}
}

?>