/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
package jalview.io;
-import java.io.StringWriter;
+import jalview.datamodel.Alignment;
+import jalview.datamodel.AlignmentI;
+
import java.io.PrintWriter;
+import java.io.StringWriter;
import java.util.Enumeration;
import java.util.Hashtable;
-import jalview.datamodel.Alignment;
-import jalview.datamodel.AlignmentI;
-
/**
* Render associated attributes of an alignment. The heart of this code was
* refactored from jalview.gui.AlignFrame and jalview.appletgui.AlignFrame TODO:
- alignment.getSequenceAt(i).getStart();
avg += size;
if (size > max)
+ {
max = size;
+ }
if (size < min)
+ {
min = size;
+ }
}
- avg = avg / (float) alignment.getHeight();
+ avg = avg / alignment.getHeight();
pw.print(nl);
pw.print("Sequences: " + alignment.getHeight());
pw.print(nl);