/** * Returns the row width. * * @return int the width of the row */ private int getRowWidth() { int returnVal = 1; if (rows.size() < 1) { returnVal = 0; } for (int i = 0; i < rows.size(); i++) { if (rows.get(i) instanceof Row) { returnVal = ((Row)rows.get(i)).getRowWidth(); } } return returnVal; }