private String getAccessibleLocationInfo(ByteBlock block, BigInteger offset) {
		if (block instanceof MemoryByteBlock memBlock) {
			// location represents an address, remove leading zeros to make screen reading concise
			Address address = memBlock.getAddress(offset);
			return address.toString(address.getAddressSpace().showSpaceName(), 1);
		}
		// otherwise use generic location representation
		return block.getLocationRepresentation(offset);
	}
Constructor

@param vpanel the byte viewer panel that this component lives in
@param layoutModel the layout model for this component
@param model data format model that knows how the data should be displayed
@param bytesPerLine number of bytes displayed in a row
@param fm the font metrics used for drawing
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerComponent.java