RequestOutputPlotCurveNodeClass.php 1.17 KB
<?php

define ("REQUESTOUTPUTPLOTCURVE_STYLE", "style");
define ("REQUESTOUTPUTPLOTCURVE_WIDTH", "width");
define ("REQUESTOUTPUTPLOTCURVE_COLOR", "color");

abstract class RequestOutputPlotCurveStyleEnum
{
	const PLAIN         = "plain";
	const DOT           = "dot";
	const LONGSPACEDDOT = "long-spaced-dot";
	const LONGSHORTDOT  = "long-short-dot";
}

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

	public function setStyle($style)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTCURVE_STYLE, $style);
	}
	
	public function getStyle()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTCURVE_STYLE);
	}
	
	public function setWidth($width)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTCURVE_WIDTH, $width);
	}
	
	public function getWidth()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTCURVE_WIDTH);
	}
	
	public function setColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTCURVE_COLOR, $color);
	}
	
	public function getColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTCURVE_COLOR);
	}
}

?>