PMA\libraries\plugins\schema\eps\Eps::line PHP Метод

line() публичный Метод

drawing the lines from x,y source to x,y destination and set the width of the line. lines helps in showing relationships of tables
public line ( integer $x_from, integer $y_from, integer $x_to, integer $y_to, integer $lineWidth ) : void
$x_from integer The x_from attribute defines the start left position of the element
$y_from integer The y_from attribute defines the start right position of the element
$x_to integer The x_to attribute defines the end left position of the element
$y_to integer The y_to attribute defines the end right position of the element
$lineWidth integer Sets the width of the line e.g 2
Результат void
    public function line($x_from = 0, $y_from = 0, $x_to = 0, $y_to = 0, $lineWidth = 0)
    {
        $this->stringCommands .= $lineWidth . " setlinewidth  \n";
        $this->stringCommands .= $x_from . ' ' . $y_from . " moveto \n";
        $this->stringCommands .= $x_to . ' ' . $y_to . " lineto \n";
        $this->stringCommands .= "stroke \n";
    }