private int convertTimeToPos(long time) {
		long st = filterManager.getGlobalStartTime().getTime();
		long et = filterManager.getGlobalEndTime().getTime();

		if (st == et) {
			return getWidth() / 2;
		}

		return (int)((getWidth() - border_offset * 2) * (time - st) / (et - st) + border_offset);
		//return (int)((time - st) * grid + border_offset);
	}