@Override
	public Address getLayoutEndAddress(int i) {
		if (i < 0 || i >= layouts.size()) {
			return null;
		}

		Address addr = map.getAddress(layouts.get(i).getIndex());
		try {
			return addr.add(layouts.get(i).getIndexSize() - 1);
		}
		catch (AddressOutOfBoundsException e) {
			// TODO we need a better description of when this can happen
			return null;
		}
	}
Constructor.

@param layouts the set of layouts that are currently visible on the screen
@param map the map containing the addresses by index
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/util/VerticalPixelAddressMapImpl.java