RequestOutputPlotLayoutNodeClass.php 1.88 KB
<?php

define ("REQUESTOUTPUTPLOTLAYOUT_NAME", "layout");
define ("REQUESTOUTPUTPLOTLAYOUT_TYPE", "type");
define ("REQUESTOUTPUTPLOTLAYOUT_PANELHEIGHT", "panelHeight");
define ("REQUESTOUTPUTPLOTLAYOUT_PANELSPACING", "panelSpacing");
define ("REQUESTOUTPUTPLOTLAYOUT_FIRSTPANELHEIGHTFACTOR", "firstPanelHeightFactor");
define ("REQUESTOUTPUTPLOTLAYOUT_EXPAND", "expand");

abstract class RequestOutputPlotLayoutTypeEnum
{
	const MANUAL   = "manual";
	const AUTO     = "auto";
	const VERTICAL = "vertical";
}

/**
 * @class RequestOutputPlotLayoutNodeClass
 * @brief Definition of a layout for a page of a plot request
 * @details
 */
class RequestOutputPlotLayoutNodeClass extends NodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTLAYOUT_NAME);
	}
	
	public function setType($type)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_TYPE, $type);
	}

	public function getType()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_TYPE);
	}
	
	public function setPanelHeight($height)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_PANELHEIGHT, $height);
	}
	
	public function getPanelHeight()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_PANELHEIGHT);
	}
	
	public function setPanelSpacing($spacing)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_PANELSPACING, $spacing);
	}
	
	public function getPanelSpacing()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_PANELSPACING);
	}
	
	public function setFirstPanelHeightFactor($factor)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_FIRSTPANELHEIGHTFACTOR, $factor);
	}
	
	public function getFirstPanelHeightFactor()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_FIRSTPANELHEIGHTFACTOR);
	}
	
	public function setExpand($expand)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_EXPAND, $expand);
	}
	
	public function getExpand()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_EXPAND);
	}
}
?>