public function setXyScale($x, $y) { $x = ($x - $this->_xMin) / $this->scale + $this->leftMargin; $y = ($y - $this->_yMin) / $this->scale + $this->topMargin; $this->SetXY($x, $y); }