RequestOutputPlotFontNodeClass.php 1.57 KB
<?php

require_once("RequestOutputPlotFontNodeClass.php");

abstract class RequestOutputPlotFontStyle
{
	const UPRIGHT = "upright";
	const ITALIC  = "italic";
	const OBLIQUE = "oblique";
}

abstract class RequestOutputPlotFontWeight
{
	const MEDIUM = "medium";
	const BOLD   = "bold";
}

define ("REQUESTOUTPUTPLOTFONT_NODENAME", "font");
define ("REQUESTOUTPUTPLOTFONT_NAME", "name");
define ("REQUESTOUTPUTPLOTFONT_SIZE", "size");
define ("REQUESTOUTPUTPLOTFONT_STYLE", "style");
define ("REQUESTOUTPUTPLOTFONT_WEIGHT", "weight");

/**
 * @class RequestOutputPlotFontNodeClass
 * @brief Definition of a font for an element of a plot request
 * @details
*/
class RequestOutputPlotFontNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTFONT_NODENAME);
	}

	public function setFontName($fontName)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_NAME, $fontName);
	}
	
	public function getFontName()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_NAME);
	}

	public function setSize($size)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_SIZE, $size);
	}
	
	public function getSize()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_SIZE);
	}
	
	public function setStyle($style)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_STYLE, $style);
	}
	
	public function getStyle()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_STYLE);
	}
	
	public function setWeight($weight)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFONT_WEIGHT, $weight);
	}
	
	public function getWeight()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFONT_WEIGHT);
	}
}

?>