private boolean[] checkTileScales(final Tile tile) { final int jrow = tile.getRowIndex(); final int jcol = tile.getColumnIndex(); final AxisScale hscale = tile.getHScale(); final AxisScale vscale = tile.getVScale(); boolean hcompat = true; for (int irow=0; irow<_nrow; ++irow){ final Tile t = _tiles[irow][jcol]; hcompat &= t.getHScale()==hscale; } boolean vcompat = true; for (int icol=0; icol<_ncol; ++icol){ final Tile t = _tiles[jrow][icol]; vcompat &= t.getVScale()==vscale; } return new boolean[] { hcompat, vcompat }; }