RequestOutputPlotSymbolNodeClass.php 1.55 KB
<?php

define ("REQUESTOUTPUTPLOTSYMBOL_TYPE", "type");
define ("REQUESTOUTPUTPLOTSYMBOL_SIZE", "size");
define ("REQUESTOUTPUTPLOTSYMBOL_COLOR", "color");

abstract class RequestOutputPlotSymbolTypeEnum
{
	const NO           = "no";
	const DOT          = "dot";
	const PLUS         = "plus";
	const WILDCARD     = "wildcard";
	const CIRCLE       = "circle";
	const CRUX         = "crux";
	const SQUARE       = "square";
	const TRIANGLE     = "triangle";
	const CRUXINCIRCLE = "crux-in-circle";
	const DOTINCIRCLE  = "dot-in-circle";
	const DIAMOND      = "diamond";
	const STAR         = "star";
	const DAVIDSTAR    = "david-star";
	const FULLSQUARE   = "full-square";
	const FULLCIRCLE   = "full-circle";
	const FULLSTAR     = "full-star";
}

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

	public function setType($type)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_TYPE, $type);
	}
	
	public function getType()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_TYPE);
	}
	
	public function setSize($size)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_SIZE, $size);
	}
	
	public function getSize()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_SIZE);
	}
	
	public function setColor($color)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTSYMBOL_COLOR, $color);
	}
	
	public function getColor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTSYMBOL_COLOR);
	}
}

?>