RequestOutputPlotLegendsNodeClass.php
570 Bytes
<?php
require_once("RequestOutputPlotParamsLegendNodeClass.php");
/**
* @class RequestOutputPlotLegendsNodeClass
* @brief Definition of legends element for a plot
* @details
*/
class RequestOutputPlotLegendsNodeClass extends NodeClass
{
public function __construct($name)
{
parent::__construct($name);
}
public function getParamsLegend()
{
$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTPARAMSLEGEND_NAME);
if (!isset($node))
{
$node = new RequestOutputPlotParamsLegendNodeClass();
$this->addChild($node);
}
return $node;
}
}
?>