import jalview.util.UrlLink;
import java.util.ArrayList;
-import java.util.Hashtable;
import java.util.List;
+import java.util.Map;
/**
* generate HTML reports for a sequence
}
public void appendFeatures(final StringBuffer tooltipText2, int rpos,
- List<SequenceFeature> features, Hashtable minmax)
+ List<SequenceFeature> features, Map<String, float[][]> map)
{
String tmpString;
if (features != null)
// check score should be shown
if (!Float.isNaN(feature.getScore()))
{
- float[][] rng = (minmax == null) ? null : ((float[][]) minmax
- .get(feature.getType()));
+ float[][] rng = (map == null) ? null : (map.get(feature
+ .getType()));
if (rng != null && rng[0] != null && rng[0][0] != rng[0][1])
{
tooltipText2.append(" Score=" + feature.getScore());
public void createSequenceAnnotationReport(final StringBuffer tip,
SequenceI sequence, boolean showDbRefs, boolean showNpFeats,
- Hashtable minmax)
+ Map<String, float[][]> minmax)
{
createSequenceAnnotationReport(tip, sequence, showDbRefs, showNpFeats,
true, minmax);
public void createSequenceAnnotationReport(final StringBuffer tip,
SequenceI sequence, boolean showDbRefs, boolean showNpFeats,
- boolean tableWrap, Hashtable minmax)
+ boolean tableWrap, Map<String, float[][]> map)
{
String tmp;
tip.append("<i>");
int sz = -tip.length();
List<SequenceFeature> tfeat = new ArrayList<SequenceFeature>();
tfeat.add(features[i]);
- appendFeatures(tip, 0, tfeat, minmax);
+ appendFeatures(tip, 0, tfeat, map);
sz += tip.length();
maxWidth = Math.max(maxWidth, sz);
}