diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index def3f25..9edaa34 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -313,6 +313,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass $pageNode->getLayout()->setPanelHeight($tab->{'page-layout-object'}->{'layout-panel-height'}); $pageNode->getLayout()->setPanelSpacing($tab->{'page-layout-object'}->{'layout-panel-spacing'}); $pageNode->getLayout()->setExpand($tab->{'page-layout-object'}->{'layout-expand'} ? "true" : "false"); + $pageNode->getLayout()->setOnlyLowerTimeAxesLegend($tab->{'page-layout-object'}->{'layout-timeaxes-legend-lowerone'} ? "true" : "false"); //if ($tab->{'page-layout-object'}->{'layout-timeplot-width'} > 0) // $pageNode->setDefaultTimePlotWidth($tab->{'page-layout-object'}->{'layout-timeplot-width'}); if ($tab->{'page-layout-object'}->{'layout-timeplot-height'} > 0) @@ -327,6 +328,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass $pageNode->getLayout()->setPanelHeight($tab->{'page-layout-object'}->{'layout-panel-height'}); $pageNode->getLayout()->setPanelSpacing($tab->{'page-layout-object'}->{'layout-panel-spacing'}); $pageNode->getLayout()->setExpand($tab->{'page-layout-object'}->{'layout-expand'} ? "true" : "false"); + $pageNode->getLayout()->setOnlyLowerTimeAxesLegend($tab->{'page-layout-object'}->{'layout-timeaxes-legend-lowerone'} ? "true" : "false"); break; case 'manual' : $pageNode->getLayout()->setType(RequestOutputPlotLayoutTypeEnum::MANUAL); diff --git a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLayoutNodeClass.php b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLayoutNodeClass.php index ccfd419..d2bed30 100644 --- a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLayoutNodeClass.php +++ b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotLayoutNodeClass.php @@ -6,6 +6,7 @@ define ("REQUESTOUTPUTPLOTLAYOUT_PANELHEIGHT", "panelHeight"); define ("REQUESTOUTPUTPLOTLAYOUT_PANELSPACING", "panelSpacing"); define ("REQUESTOUTPUTPLOTLAYOUT_FIRSTPANELHEIGHTFACTOR", "firstPanelHeightFactor"); define ("REQUESTOUTPUTPLOTLAYOUT_EXPAND", "expand"); +define ("REQUESTOUTPUTPLOTLAYOUT_ONLYLOWERTIMEAXESLEGEND", "onlyLowerTimeAxesLegend"); abstract class RequestOutputPlotLayoutTypeEnum { @@ -75,7 +76,17 @@ class RequestOutputPlotLayoutNodeClass extends NodeClass { return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_EXPAND); } + + public function setOnlyLowerTimeAxesLegend($onlyLower) + { + $this->setAttribute(REQUESTOUTPUTPLOTLAYOUT_ONLYLOWERTIMEAXESLEGEND, $onlyLower); + } + public function getOnlyLowerTimeAxesLegend() + { + return $this->getAttribute(REQUESTOUTPUTPLOTLAYOUT_ONLYLOWERTIMEAXESLEGEND); + } + public function loadFromNode($xmlNode) { $this->setType($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLAYOUT_TYPE)); @@ -83,8 +94,9 @@ class RequestOutputPlotLayoutNodeClass extends NodeClass $this->setPanelSpacing($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLAYOUT_PANELSPACING)); $this->setFirstPanelHeightFactor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLAYOUT_FIRSTPANELHEIGHTFACTOR)); $this->setExpand($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLAYOUT_EXPAND)); + $this->setOnlyLowerTimeAxesLegend($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTLAYOUT_ONLYLOWERTIMEAXESLEGEND)); } } ?> - \ No newline at end of file + -- libgit2 0.21.2