public function setGraphArea($X1, $Y1, $X2, $Y2)
    {
        if ($X2 < $X1 || $X1 == $X2 || $Y2 < $Y1 || $Y1 == $Y2) {
            return -1;
        }

        $this->GraphAreaX1 = $X1;
        $this->DataSet->Data["GraphArea"]["X1"] = $X1;
        $this->GraphAreaY1 = $Y1;
        $this->DataSet->Data["GraphArea"]["Y1"] = $Y1;
        $this->GraphAreaX2 = $X2;
        $this->DataSet->Data["GraphArea"]["X2"] = $X2;
        $this->GraphAreaY2 = $Y2;
        $this->DataSet->Data["GraphArea"]["Y2"] = $Y2;
    }
public function setGraphArea($X1, $Y1, $X2, $Y2)
    {
        if ($X2 < $X1 || $X1 == $X2 || $Y2 < $Y1 || $Y1 == $Y2) {
            return -1;
        }

        $this->GraphAreaX1 = $X1;
        $this->DataSet->Data["GraphArea"]["X1"] = $X1;
        $this->GraphAreaY1 = $Y1;
        $this->DataSet->Data["GraphArea"]["Y1"] = $Y1;
        $this->GraphAreaX2 = $X2;
        $this->DataSet->Data["GraphArea"]["X2"] = $X2;
        $this->GraphAreaY2 = $Y2;
        $this->DataSet->Data["GraphArea"]["Y2"] = $Y2;
    }
public function setGraphArea ( $ X1 , $ Y1 , $ X2 , $ Y2 ) { if ( $ X2 < $ X1 || $ X1 == $ X2 || $ Y2 < $ Y1 || $ Y1 == $ Y2 ) { return - 1 ; } $ this -> GraphAreaX1 = $ X1 ; $ this -> DataSet -> Data [ "GraphArea" ] [ "X1" ] = $ X1 ; $ this -> GraphAreaY1 = $ Y1 ; $ this -> DataSet -> Data [ "GraphArea" ] [ "Y1" ] = $ Y1 ; $ this -> GraphAreaX2 = $ X2 ; $ this -> DataSet -> Data [ "GraphArea" ] [ "X2" ] = $ X2 ; $ this -> GraphAreaY2 = $ Y2 ; $ this -> DataSet -> Data [ "GraphArea" ] [ "Y2" ] = $ Y2 ; }
Set the graph area position
@param int $X1
@param int $Y1
@param int $X2
@param int $Y2
@return int|null
Set the graph area position