/*
- * 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)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
}
else
{
- graphGroup_refs.put(key, new Object[]
- { refSeq, refGroup });
+ graphGroup_refs.put(key, new Object[] { refSeq, refGroup });
graphGroup.put(key, row.label);
}
}
text.append(properties.get(key));
}
// TODO: output alignment visualization settings here if required
- // iterate through one or more views, defining, marking columns and rows as visible/hidden, and emmitting view properties.
- // View specific annotation is
+ // iterate through one or more views, defining, marking columns and rows
+ // as visible/hidden, and emmitting view properties.
+ // View specific annotation is
}
return text.toString();
}
boolean rslt = readAnnotationFile(viewport.getAlignment(), colSel,
file, protocol);
- if (rslt
- && (colSel.hasSelectedColumns() || colSel.hasHiddenColumns()))
+ if (rslt && (colSel.hasSelectedColumns() || colSel.hasHiddenColumns()))
{
viewport.setColumnSelection(colSel);
}
return rslt;
}
+
public boolean readAnnotationFile(AlignmentI al, String file,
String protocol)
{
private static String GRAPHLINE = "GRAPHLINE", COMBINE = "COMBINE";
public boolean parseAnnotationFrom(AlignmentI al, ColumnSelection colSel,
- BufferedReader in)
- throws Exception
+ BufferedReader in) throws Exception
{
nlinesread = 0;
ArrayList<Object[]> combineAnnotation_calls = new ArrayList<Object[]>();
else if (token.equalsIgnoreCase(COMBINE))
{
// keep a record of current state and resolve groupRef at end
- combineAnnotation_calls.add(new Object[]
- { st, refSeq, groupRef });
+ combineAnnotation_calls
+ .add(new Object[] { st, refSeq, groupRef });
modified = true;
continue;
}
else if (token.equalsIgnoreCase(GRAPHLINE))
{
// resolve at end
- deferredAnnotation_calls.add(new Object[]
- { GRAPHLINE, st, refSeq, groupRef });
+ deferredAnnotation_calls.add(new Object[] { GRAPHLINE, st,
+ refSeq, groupRef });
modified = true;
continue;
}
(SequenceI) _deferred_args[2], // refSeq
(_deferred_args[3] == null) ? null : groupRefLookup
.get(_deferred_args[3]) // the reference
- // group, or null
+ // group, or null
);
}
}
(SequenceI) _combine_args[1], // refSeq
(_combine_args[2] == null) ? null : groupRefLookup
.get(_combine_args[2]) // the reference group,
- // or null
+ // or null
);
}
}
private void parseHideCols(ColumnSelection colSel, String nextToken)
{
- StringTokenizer inval = new StringTokenizer(nextToken,",");
+ StringTokenizer inval = new StringTokenizer(nextToken, ",");
while (inval.hasMoreTokens())
{
String range = inval.nextToken().trim();