diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index ca0be3b..55e4ee5 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -299,6 +299,11 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass if (($panelData->{'panel-background-color'} != 'none') && ($panelData->{'panel-background-color'} != '')) $panelNode->setBackgroundColor($this->hexColor2KernelColor($panelData->{'panel-background-color'})); + //Plot Area background color + if (($panelData->{'panel-plotareabackground-color'} != 'none') && ($panelData->{'panel-plotareabackground-color'} != '')) { + $panelNode->setPlotAreaBackgroundColor($this->hexColor2KernelColor($panelData->{'panel-plotareabackground-color'})); + } + //Panel font $this->unmarshallFont($panelData, 'panel-font', $panelNode->getFont()); diff --git a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php index eff79f9..76db3b4 100644 --- a/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php +++ b/src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotPanelNodeClass.php @@ -11,6 +11,7 @@ require_once "RequestOutputPlotFontNodeClass.php"; define ("REQUESTOUTPUTPLOTPANEL_NAME", "panel"); define ("REQUESTOUTPUTPLOTPANEL_TITLE", "title"); define ("REQUESTOUTPUTPLOTPANEL_BACKGROUNDCOLOR", "backgroundColor"); +define("REQUESTOUTPUTPLOTPANEL_PLOTAREABACKGROUNDCOLOR", "plotAreaBackgroundColor"); define ("REQUESTOUTPUTPLOTPANEL_XMARGIN", "xMargin"); define ("REQUESTOUTPUTPLOTPANEL_PREFEREDWIDTH", "preferedWidth"); define ("REQUESTOUTPUTPLOTPANEL_PREFEREDHEIGHT", "preferedHeight"); @@ -43,11 +44,21 @@ class RequestOutputPlotPanelNodeClass extends NodeClass { $this->setAttribute(REQUESTOUTPUTPLOTPANEL_BACKGROUNDCOLOR, $color); } + + public function setPlotAreaBackgroundColor($color) + { + $this->setAttribute(REQUESTOUTPUTPLOTPANEL_PLOTAREABACKGROUNDCOLOR, $color); + } public function getBackgroundColor() { return $this->getAttribute(REQUESTOUTPUTPLOTPANEL_BACKGROUNDCOLOR); } + + public function getPlotAreaBackgroundColor() + { + return $this->getAttribute(REQUESTOUTPUTPLOTPANEL_PLOTAREABACKGROUNDCOLOR); + } public function getBounds() { -- libgit2 0.21.2