// set the column renderers
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.A_ION)) {
try {
getColumn("a").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.B_ION)) {
try {
getColumn("b").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.C_ION)) {
try {
getColumn("c").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.X_ION)) {
try {
getColumn("x").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.Y_ION)) {
try {
getColumn("y").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
if (annotationPreferences.getFragmentIonTypes().contains(PeptideFragmentIon.Z_ION)) {
try {
getColumn("z").setCellRenderer(new JSparklinesTableCellRenderer(JSparklinesTableCellRenderer.PlotType.lineChart, PlotOrientation.VERTICAL, maxAreaChartValue));
} catch (IllegalArgumentException e) {
// do nothing
}
}
}