private int getSliderPosition(long filePos) {
		try {
			float fileRatio = (float) filePos / reader.getFileSize();
			return (int) (getMaximum() * fileRatio);
		}
		catch (IOException e) {
			Msg.error(this, "Error getting file size", e);
		}

		return 0;
	}
Returns the slider position for the given file pointer position. This is calculated by
computing the position of the file pointer as a percentage of the total file size, and 
applying the same to the slider (relative to its maximum value).

@param filePos
@return
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FVSlider.java