setAttribute(REQUESTOUTPUTPLOTTEXT_TEXT, $text); } public function getText() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_TEXT); } public function setYAxis($yAxis) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_YAXIS, $yAxis); } public function getYAxis() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_YAXIS); } public function setX($x) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_X, $x); } public function getX() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_X); } public function setY($y) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_Y, $y); } public function getY() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_Y); } public function setAngle($angle) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_ANGLE, $angle); } public function getAngle() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_ANGLE); } public function setColor($color) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_COLOR, $color); } public function getColor() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_COLOR); } public function setAlign($align) { $this->setAttribute(REQUESTOUTPUTPLOTTEXT_ALIGN, $align); } public function getAlign() { return $this->getAttribute(REQUESTOUTPUTPLOTTEXT_ALIGN); } public function getFont() { $node = $this->getFirstChildByName(REQUESTOUTPUTPLOTTEXT_FONT); if (!isset($node)) { $node = new RequestOutputPlotFontNodeClass(); $this->addChild($node); } return $node; } public function loadFromNode($xmlNode) { $this->setText($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_TEXT)); $this->setYAxis($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_YAXIS)); $this->setX($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_X)); $this->setY($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_Y)); $this->setAngle($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_ANGLE)); $this->setColor($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_COLOR)); $this->setAlign($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTTEXT_ALIGN)); $fontXmlNode = $this->getXmlNodeChildByTagName($xmlNode, REQUESTOUTPUTPLOTTEXT_FONT); if (isset($fontXmlNode)) $this->getFont()->loadFromNode($fontXmlNode); } } ?>