protected function calculateDimensions()
    {
        foreach ($this->getRows() as $x => $row) {
            foreach ($row as $y => $value) {
                $this->calculateDimensionsForCell($x, $y, $value);
            }
        }
        return $this;
    }