boolean showSSAnnotations, boolean showAnnotations,
boolean hideTFrows)
{
- af.setAnnotationsVisibility(true, showSSAnnotations, showAnnotations);
+ af.setAnnotationsVisibility(showSSAnnotations, true, false);
+ af.setAnnotationsVisibility(showAnnotations, false, true);
// show temperature factor annotations?
if (hideTFrows)
public static void doConfigureStructurePrefs(
StructureSelectionManager ssm)
{
- if (Cache.getDefault(Preferences.ADD_SS_ANN, true))
+ doConfigureStructurePrefs(ssm,
+ Cache.getDefault(Preferences.ADD_SS_ANN, true),
+ Cache.getDefault(Preferences.ADD_TEMPFACT_ANN, true),
+ Cache.getDefault(Preferences.STRUCT_FROM_PDB, true),
+ Cache.getDefault(Preferences.USE_RNAVIEW, false));
+ }
+
+ public static void doConfigureStructurePrefs(
+ StructureSelectionManager ssm, boolean add_ss_ann,
+ boolean add_tempfact_ann, boolean struct_from_pdb,
+ boolean use_rnaview)
+ {
+ if (add_ss_ann)
{
- ssm.setAddTempFacAnnot(
- Cache.getDefault(Preferences.ADD_TEMPFACT_ANN, true));
- ssm.setProcessSecondaryStructure(
- Cache.getDefault(Preferences.STRUCT_FROM_PDB, true));
+ ssm.setAddTempFacAnnot(add_tempfact_ann);
+ ssm.setProcessSecondaryStructure(struct_from_pdb);
// JAL-3915 - RNAView is no longer an option so this has no effect
- ssm.setSecStructServices(
- Cache.getDefault(Preferences.USE_RNAVIEW, false));
+ ssm.setSecStructServices(use_rnaview);
}
else
{