Exemplo n.º 1
0
 /**
  * @param integer $x
  * @param integer $y
  * @param DrawTable $drawTable
  * @param WindowBounds $windowBounds
  * @return bool
  */
 private function outOfBoundsCheck($x, $y, DrawTable $drawTable, WindowBounds $windowBounds)
 {
     if ($x < $windowBounds->getMinX() || $x >= $windowBounds->getMaxX() || $x >= $drawTable->getWidth() || $y < $windowBounds->getMinY() || $y >= $windowBounds->getMaxY() || $y >= $drawTable->getHeight()) {
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public function drawTable(DrawTable $drawTable)
 {
     $this->output->write($drawTable->getAll());
 }