setAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_TEXT, $text); } public function getText() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_TEXT); } public function setPosition($position) { $this->setAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_POSITION, $position); } public function getPosition() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_POSITION); } public function setColor($color) { $this->setAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_COLOR, $color); } public function getColor() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXTLEGEND_COLOR); } public function getFont() { $node = $this->getFirstChildByName(REQUESTOUTPUTPLOTPARAMSLEGEND_FONT); if (!isset($node)) { $node = new RequestOutputPlotFontNodeClass(); $this->addChild($node); } return $node; } public function loadFromNode($xmlNode) { $this->setText($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXTLEGEND_TEXT)); $this->setPosition($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXTLEGEND_POSITION)); $this->setColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXTLEGEND_COLOR)); $fontXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTPARAMSLEGEND_FONT); if (isset($fontXmlNode)) $this->getFont()->loadFromNode($fontXmlNode); } } ?>