default :
maxHeight = peak.getRawDataPointsIntensityRange().getMax();
break;
}
PeakXICComponent xic = new PeakXICComponent(peak, maxHeight);
newPanel.add(xic);
newPanel.setToolTipText(xic.getToolTipText());
}
if (value instanceof PeakListRow) {
PeakListRow plRow = (PeakListRow) value;
RawDataFile[] dataFiles = peakList.getRawDataFiles();
ChromatographicPeak[] peaks = new ChromatographicPeak[dataFiles.length];
for (int i = 0; i < dataFiles.length; i++) {
peaks[i] = plRow.getPeak(dataFiles[i]);
}
CombinedXICComponent xic = new CombinedXICComponent(peaks,
plRow.getID());
newPanel.add(xic);
newPanel.setToolTipText(xic.getToolTipText());
}
return newPanel;