vProperty.setName(name);
if (type!=null)
vProperty.setType(type);
+ else
+ vProperty.setType("String");
vProperty.setContent(content);
return vProperty;
}
// construct alignment view
alignFrame = new AlignFrame(jal);
av=alignFrame.getViewport();
+ String title = alignment.getProvenance().getEntry(alignment.getProvenance().getEntryCount()-1).getAction();
+ if (alignment.getPropertyCount()>0) {
+ for (int p=0,pe=alignment.getPropertyCount(); p<pe; p++) {
+ if (alignment.getProperty(p).getName().equals("jalview:AlTitle")) {
+ title = alignment.getProperty(p).getContent();
+ }
+ }
+ }
// TODO: automatically create meaningful title for a vamsas alignment using its provenance.
- jalview.gui.Desktop.addInternalFrame(alignFrame, alignment.getProvenance().getEntry(alignment.getProvenance().getEntryCount()-1).getAction(),
+ jalview.gui.Desktop.addInternalFrame(alignFrame, title + "("+alignment.getVorbaId()+")",
AlignFrame.NEW_WINDOW_WIDTH,
AlignFrame.NEW_WINDOW_HEIGHT);
bindjvvobj(av, alignment);
inputData = (AlignmentView) idata[0];
tp = alignFrame.ShowNewickTree(
new jalview.io.NewickFile(tree.getNewick(0).getContent()),
- tree.getNewick(0).getTitle(),inputData,
+ tree.getNewick(0).getTitle()+" ("+tree.getVorbaId()+")",inputData,
600, 500,
t * 20 + 50, t * 20 + 50);
bindjvvobj(tp, tree);
jan = new jalview.datamodel.AlignmentAnnotation(a_label, a_descr, arow, min, max, type);
} else {
jan = new jalview.datamodel.AlignmentAnnotation(a_label, a_descr, arow);
+ jan.setThreshold(null);
}
if (annotation.getLinkCount()>0) {
Cache.log.warn("Ignoring "+annotation.getLinkCount()+"links added to AlignmentAnnotation.");