}
else
{
- ScoreModelI sm = configureScoreModel(pwtype);
+ ScoreModelI sm1 = ScoreModels.getInstance().getScoreModel(pwtype,
+ treeCanvas.ap);
+ ScoreModelI sm = sm1;
TreeBuilder njtree = type.equals(TreeBuilder.NEIGHBOUR_JOINING) ? new NJTree(
av, sm, SimilarityParams.Jalview)
: new AverageDistanceTree(av, sm, SimilarityParams.Jalview);
inputData.addActionListener(this);
}
- /**
- * Gets an instantiated score model for the given name, configured for the
- * current view if applicable
- *
- * @param modelName
- * @return
- */
- protected ScoreModelI configureScoreModel(String modelName)
- {
- ScoreModelI sm = ScoreModels.getInstance().getScoreModel(modelName,
- treeCanvas.ap);
- return sm;
- }
-
}
}
else
{
- ScoreModelI sm = configureScoreModel();
+ ScoreModelI sm = ScoreModels.getInstance().getScoreModel(
+ scoreModelName, treeCanvas.ap);
TreeBuilder njtree = treeType.equals(TreeBuilder.NEIGHBOUR_JOINING) ? new NJTree(
av, sm, similarityParams) : new AverageDistanceTree(av, sm,
similarityParams);
treecalcnm, smn);
return ttl;
}
-
- /**
- * Instantiate an instance of the score model, configured for the current view
- * if applicable
- *
- * @return
- */
- protected ScoreModelI configureScoreModel()
- {
- return ScoreModels.getInstance().getScoreModel(scoreModelName,
- treeCanvas.ap);
- }
}