X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;h=ffc0be3dddf7fd67353eccce1c65425ab880a1b2;hb=eb9c652416a69e6db0531e956dd2011012eac898;hp=6d8ce5f9daeca0021b745e8fec3696c0b2ae15bd;hpb=0873fd1ab406be7ef121f466c7b53e4b6315bbca;p=jalview.git diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 6d8ce5f..ffc0be3 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) - * Copyright (C) $$Year-Rel$$ The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * @@ -20,7 +20,6 @@ */ package jalview.io; - import jalview.datamodel.DBRefEntry; import jalview.datamodel.SequenceFeature; import jalview.datamodel.SequenceI; @@ -30,7 +29,6 @@ import java.util.ArrayList; import java.util.Hashtable; import java.util.List; - /** * generate HTML reports for a sequence * @@ -67,12 +65,11 @@ public class SequenceAnnotationReport String tmpString; if (features != null) { - for (SequenceFeature feature:features) + for (SequenceFeature feature : features) { if (feature.getType().equals("disulfide bond")) { - if (feature.getBegin() == rpos - || feature.getEnd() == rpos) + if (feature.getBegin() == rpos || feature.getEnd() == rpos) { if (tooltipText2.length() > 6) { @@ -104,8 +101,7 @@ public class SequenceAnnotationReport } if (feature.getDescription() != null - && !feature.description.equals(feature - .getType())) + && !feature.description.equals(feature.getType())) { tmpString = feature.getDescription(); String tmp2up = tmpString.toUpperCase(); @@ -235,8 +231,7 @@ public class SequenceAnnotationReport // collect matching db-refs DBRefEntry[] dbr = jalview.util.DBRefUtils.selectRefs(seq.getDBRef(), - new String[] - { target }); + new String[] { target }); // collect id string too String id = seq.getName(); String descr = seq.getDescription(); @@ -263,8 +258,8 @@ public class SequenceAnnotationReport String unq = urls[u] + "|" + urls[u + 1]; if (!uniques.contains(unq)) { - urlSets.add(new String[] - { target, label, urls[u], urls[u + 1] }); + urlSets.add(new String[] { target, label, urls[u], + urls[u + 1] }); uniques.add(unq); } } @@ -282,8 +277,8 @@ public class SequenceAnnotationReport String unq = urls[u] + "|" + urls[u + 1]; if (!uniques.contains(unq)) { - urlSets.add(new String[] - { target, label, urls[u], urls[u + 1] }); + urlSets.add(new String[] { target, label, urls[u], + urls[u + 1] }); uniques.add(unq); } } @@ -300,8 +295,8 @@ public class SequenceAnnotationReport String unq = urls[u] + "|" + urls[u + 1]; if (!uniques.contains(unq)) { - urlSets.add(new String[] - { target, label, urls[u], urls[u + 1] }); + urlSets.add(new String[] { target, label, urls[u], + urls[u + 1] }); uniques.add(unq); } } @@ -316,13 +311,12 @@ public class SequenceAnnotationReport { uniques.add(unq); // Add a non-dynamic link - urlSets.add(new String[] - { target, label, null, urlLink.getUrl_prefix() }); + urlSets.add(new String[] { target, label, null, + urlLink.getUrl_prefix() }); } } - return urlSets.toArray(new String[][] - {}); + return urlSets.toArray(new String[][] {}); } public void createSequenceAnnotationReport(final StringBuffer tip,