public void scroll(Direction direction, int i) {
		switch(direction) {
		case UP:
			if(yOffset >= -4600) {
				yOffset -= i; 
			} else {
				log.logp(Level.WARNING, getClass().getSimpleName(), "scroll(Direction, int)",
						"Can't scroll up any more");
			}
			break;
		case DOWN:
			if(yOffset < 0) {
				yOffset += i;
			} else {
				log.logp(Level.WARNING, getClass().getSimpleName(), "scroll(Direction, int)",
						"Can't scroll down any more");
			}
			break;
		default:
			log.logp(Level.WARNING, getClass().getSimpleName(), "scroll(Direction, int)",
					"Invalid scroll direction: " + direction.toString());
			break;
		}
	}