@Override
	public int getScrollableUnitIncrement(int topOfScreen, int direction, int max) {
		if ((topOfScreen < -heightAbove) || (topOfScreen > height - heightAbove)) {
			return max;
		}

		if (direction > 0) { // if scrolling down
			return height - topOfScreen - heightAbove;
		}
		return -heightAbove - topOfScreen;
	}
Constructs a new field for displaying an image.
@param icon the image icon to display
@param metrics the font metrics
@param startX the starting x coordinate of the field.
@param startY the starting y coordinate of the field.
@param width the width of the field.
@param center flag to center the image in the field.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/SimpleImageField.java