diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index 38233cb..d622bde 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -376,6 +376,9 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass if (isset($panelData->{'id'})) $panelNode->setId($panelData->{'id'}); + if (isset($panelData->{'panel-index'})) + $panelNode->setIndex($panelData->{'panel-index'}); + //Panel background color if (($panelData->{'panel-background-color'} != 'none') && ($panelData->{'panel-background-color'} != '')) $panelNode->setBackgroundColor($this->hexColor2KernelColor($panelData->{'panel-background-color'})); diff --git a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php index deb58bf..eff79f9 100644 --- a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php +++ b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php @@ -15,6 +15,7 @@ define ("REQUESTOUTPUTPLOTPANEL_XMARGIN", "xMargin"); define ("REQUESTOUTPUTPLOTPANEL_PREFEREDWIDTH", "preferedWidth"); define ("REQUESTOUTPUTPLOTPANEL_PREFEREDHEIGHT", "preferedHeight"); define ("REQUESTOUTPUTPLOTPANEL_ID", "id"); +define ("REQUESTOUTPUTPLOTPANEL_INDEX", "index"); abstract class RequestOutputPlotElementTypeEnum { @@ -156,6 +157,16 @@ class RequestOutputPlotPanelNodeClass extends NodeClass return $this->getAttribute(REQUESTOUTPUTPLOTPANEL_ID); } + public function setIndex($index) + { + $this->setAttribute(REQUESTOUTPUTPLOTPANEL_INDEX, $index); + } + + public function getIndex() + { + return $this->getAttribute(REQUESTOUTPUTPLOTPANEL_INDEX); + } + public function loadFromNode($xmlNode) { $this->setBackgroundColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTPANEL_BACKGROUNDCOLOR)); -- libgit2 0.21.2