*/
package jalview.gui;
+import jalview.analysis.AlignSeq;
import jalview.api.structures.JalviewStructureDisplayI;
import jalview.bin.Cache;
import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.StructureViewerModel.StructureData;
import jalview.ext.varna.RnaModel;
import jalview.gui.StructureViewer.ViewerType;
+import jalview.io.AppletFormatAdapter;
import jalview.schemabinding.version2.AlcodMap;
import jalview.schemabinding.version2.AlcodonFrame;
import jalview.schemabinding.version2.Annotation;
import jalview.schemes.UserColourScheme;
import jalview.structure.StructureSelectionManager;
import jalview.structures.models.AAStructureBindingModel;
+import jalview.util.Comparison;
+import jalview.util.MapList;
import jalview.util.MessageManager;
import jalview.util.Platform;
import jalview.util.jarInputStreamProvider;
object.setVamsasModel(new jalview.schemabinding.version2.VamsasModel());
object.setCreationDate(new java.util.Date(System.currentTimeMillis()));
- object.setVersion(jalview.bin.Cache.getDefault("VERSION",
+ object.setVersion(Cache.getDefault("VERSION",
"Development Build"));
- jalview.datamodel.AlignmentI jal = av.getAlignment();
+ AlignmentI jal = av.getAlignment();
if (av.hasHiddenRows())
{
{
mp = new Mapping();
- jalview.util.MapList mlst = jmp.getMap();
+ MapList mlst = jmp.getMap();
List<int[]> r = mlst.getFromRanges();
for (int[] range : r)
{
mpc.setDseqFor(jmpid);
if (!seqRefIds.containsKey(mpc.getDseqFor()))
{
- jalview.bin.Cache.log.debug("creatign new DseqFor ID");
+ Cache.log.debug("creatign new DseqFor ID");
seqRefIds.put(mpc.getDseqFor(), ps);
}
else
{
- jalview.bin.Cache.log.debug("reusing DseqFor ID");
+ Cache.log.debug("reusing DseqFor ID");
}
}
mp.setMappingChoice(mpc);
/**
* persisted version of annotation row from which to take vis properties
*/
- public jalview.datamodel.AlignmentAnnotation template;
+ public AlignmentAnnotation template;
/**
* original position of the annotation row in the alignment
}
}
}
- jalview.datamodel.AlignmentAnnotation jaa = null;
+ AlignmentAnnotation jaa = null;
if (annotation.getGraph())
{
// if (autoForView || an[i].isAutoCalculated()) {
// hlim=11f;
// }
- jaa = new jalview.datamodel.AlignmentAnnotation(
+ jaa = new AlignmentAnnotation(
annotation.getLabel(), annotation.getDescription(), anot,
llim, hlim, annotation.getGraphType());
}
else
{
- jaa = new jalview.datamodel.AlignmentAnnotation(an[i].getLabel(),
+ jaa = new AlignmentAnnotation(an[i].getLabel(),
an[i].getDescription(), anot);
jaa._linecolour = firstColour;
}
// and make a note of any group association
if (an[i].getGroupRef() != null && an[i].getGroupRef().length() > 0)
{
- List<jalview.datamodel.AlignmentAnnotation> aal = groupAnnotRefs
+ List<AlignmentAnnotation> aal = groupAnnotRefs
.get(an[i].getGroupRef());
if (aal == null)
{
- aal = new ArrayList<jalview.datamodel.AlignmentAnnotation>();
+ aal = new ArrayList<AlignmentAnnotation>();
groupAnnotRefs.put(an[i].getGroupRef(), aal);
}
aal.add(jaa);
String pdbFile = filedat.getFilePath();
SequenceI[] seq = filedat.getSeqList().toArray(new SequenceI[0]);
binding.getSsm().setMapping(seq, null, pdbFile,
- jalview.io.AppletFormatAdapter.FILE);
+ AppletFormatAdapter.FILE);
binding.addSequenceForStructFile(pdbFile, seq);
}
// and add the AlignmentPanel's reference to the view panel
List<String> remains = new ArrayList<String>(visan.keySet());
for (int h = 0; h < hSize; h++)
{
- jalview.datamodel.AlignmentAnnotation jalan = al
+ AlignmentAnnotation jalan = al
.getAlignmentAnnotation()[h];
if (jalan.autoCalculated)
{
if (sq != dsq)
{
// StringBuffer sb = new StringBuffer();
- String newres = jalview.analysis.AlignSeq.extractGaps(
- jalview.util.Comparison.GapChars, sq.getSequenceAsString());
+ String newres = AlignSeq.extractGaps(
+ Comparison.GapChars, sq.getSequenceAsString());
if (!newres.equalsIgnoreCase(dsq.getSequenceAsString())
&& newres.length() > dsq.getLength())
{
seqRefIds.put(sqid, djs);
}
- jalview.bin.Cache.log.debug("about to recurse on addDBRefs.");
+ Cache.log.debug("about to recurse on addDBRefs.");
addDBRefs(djs, ms);
}
seqRefIds.put(jv2vobj.get(jvobj).toString(), (SequenceI) jvobj);
seqsToIds.put((SequenceI) jvobj, id);
}
- else if (jvobj instanceof jalview.datamodel.AlignmentAnnotation)
+ else if (jvobj instanceof AlignmentAnnotation)
{
String anid;
AlignmentAnnotation jvann = (AlignmentAnnotation) jvobj;