@@ -64,10 +64,15 @@ public abstract class ModifiedSequenceDisplayColumn extends IconColumn
6464 public static final String PRECURSOR_COLUMN_NAME = "ModifiedPrecursorDisplayColumn" ;
6565
6666 public ModifiedSequenceDisplayColumn (ColumnInfo colInfo )
67+ {
68+ this (colInfo , true );
69+ }
70+
71+ public ModifiedSequenceDisplayColumn (ColumnInfo colInfo , boolean highlightFixed )
6772 {
6873 super (colInfo );
6974
70- _htmlMaker = new ModifiedPeptideHtmlMaker ();
75+ _htmlMaker = new ModifiedPeptideHtmlMaker (highlightFixed );
7176 }
7277
7378 ModifiedPeptideHtmlMaker getHtmlMaker ()
@@ -147,6 +152,7 @@ public static class PeptideDisplayColumnFactory implements DisplayColumnFactory
147152 private boolean _exportStrippedHtml = false ;
148153 private boolean _showNextAndPrevious = false ;
149154 private boolean _useParens = false ;
155+ private boolean _highlightFixed = true ;
150156 /** Optionally, the name of the column that identifies the animo acid and index within the protein to highlight as modified */
151157 private String _modificationSite ;
152158
@@ -161,6 +167,7 @@ public PeptideDisplayColumnFactory(MultiValuedMap<String, String> map)
161167 _useParens = getBooleanProperty (map , "useParens" , _useParens );
162168 _exportStrippedHtml = getBooleanProperty (map , "exportFormatted" , _exportStrippedHtml );
163169 _modificationSite = map == null || map .get ("modificationSite" ).isEmpty () ? null : map .get ("modificationSite" ).iterator ().next ();
170+ _highlightFixed = getBooleanProperty (map , "highlightFixed" , _highlightFixed );
164171 }
165172
166173 private boolean getBooleanProperty (MultiValuedMap <String , String > map , String propertyName , boolean defaultValue )
@@ -176,7 +183,7 @@ private boolean getBooleanProperty(MultiValuedMap<String, String> map, String pr
176183 @ Override
177184 public DisplayColumn createRenderer (ColumnInfo colInfo )
178185 {
179- return new ModifiedSequenceDisplayColumn .PeptideCol (colInfo , _showNextAndPrevious , _useParens , _exportStrippedHtml , _modificationSite );
186+ return new ModifiedSequenceDisplayColumn .PeptideCol (colInfo , _showNextAndPrevious , _useParens , _exportStrippedHtml , _highlightFixed , _modificationSite );
180187 }
181188 }
182189
@@ -190,12 +197,12 @@ public static class PeptideCol extends ModifiedSequenceDisplayColumn
190197
191198 public PeptideCol (ColumnInfo colInfo )
192199 {
193- this (colInfo , false , false , false , null );
200+ this (colInfo , false , false , false , true , null );
194201 }
195202
196- public PeptideCol (ColumnInfo colInfo , boolean showNextAndPrevious , boolean useParens , boolean exportStrippedHtml , String modificationSite )
203+ public PeptideCol (ColumnInfo colInfo , boolean showNextAndPrevious , boolean useParens , boolean exportStrippedHtml , boolean highlightFixed , String modificationSite )
197204 {
198- super (colInfo );
205+ super (colInfo , highlightFixed );
199206 _showNextAndPrevious = showNextAndPrevious ;
200207 _useParens = useParens ;
201208 _modificationSite = modificationSite ;
0 commit comments