public void setPeaks(PeakData p, int index) {
		if (index == 0) {
			peaks1 = p;
			if (!head2tail) {
				selectPeakList.clear();
			}
		} else if (index == 1) {
			peaks2 = p;
		}

		if (peaks1 != null) {
			massRange = peaks1.compMaxMzPrecusor(precursor);
		}

		if (peaks2 != null) {
			massRange = Math.max(peaks2.compMaxMzPrecusor(precursor), massRange);
			mzHitDisp.setEnabled(true);
			mzHitDisp.setSelected(true);
		}
		
		// massRangeが100で割り切れる場合は+100の余裕を持つ
		if (massRange != 0d && (massRange % 100.0d) == 0d) {
			massRange += 100.0d;
		}
		// massRangeを100単位にそろえる
		massRange = Math.ceil(massRange / 100.0d) * 100.0d;

		massStart = 0;
		intensityRange = INTENSITY_MAX;
		massRangeMax = (int)massRange;

		this.repaint();
	}