*/
package jalview.structure;
+import jalview.analysis.AlignSeq;
+import jalview.api.AlignmentViewPanel;
+import jalview.api.StructureSelectionManagerProvider;
+import jalview.commands.CommandI;
+import jalview.commands.EditCommand;
+import jalview.commands.OrderCommand;
+import jalview.datamodel.AlignedCodonFrame;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.Annotation;
+import jalview.datamodel.ColumnSelection;
+import jalview.datamodel.Mapping;
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.SearchResults;
+import jalview.datamodel.SequenceGroup;
+import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
+import jalview.util.MappingUtils;
+import jalview.util.MessageManager;
+
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import MCview.PDBChain;
import MCview.PDBfile;
-import jalview.analysis.AlignSeq;
-import jalview.api.StructureSelectionManagerProvider;
-import jalview.commands.CommandI;
-import jalview.commands.EditCommand;
-import jalview.commands.OrderCommand;
-import jalview.datamodel.AlignedCodonFrame;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.Annotation;
-import jalview.datamodel.PDBEntry;
-import jalview.datamodel.SearchResults;
-import jalview.datamodel.SequenceI;
-import jalview.io.AppletFormatAdapter;
-import jalview.util.MappingUtils;
-import jalview.util.MessageManager;
-
public class StructureSelectionManager
{
public final static String NEWLINE = System.lineSeparator();
+ seq.getEnd() - 1));
maxChain.makeExactMapping(maxAlignseq, seq);
- jalview.datamodel.Mapping sqmpping = maxAlignseq
- .getMappingFromS1(false);
- jalview.datamodel.Mapping omap = new jalview.datamodel.Mapping(
- sqmpping.getMap().getInverse());
+ Mapping sqmpping = maxAlignseq.getMappingFromS1(false);
+ Mapping omap = new Mapping(sqmpping.getMap().getInverse());
maxChain.transferRESNUMFeatures(seq, null);
// allocate enough slots to store the mapping from positions in
index++;
} while (index < maxChain.atoms.size());
- if (protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
+ if (protocol.equals(AppletFormatAdapter.PASTE))
{
pdbFile = "INLINE" + pdb.id;
}
* "+mappings[j].pdbfile);
*
* java.awt.Color col; for(int index=0; index<seq.getLength(); index++) {
- * if(jalview.util.Comparison.isGap(seq.getCharAt(index))) continue;
+ * if(Comparison.isGap(seq.getCharAt(index))) continue;
*
* atomNo = mappings[j].getAtomNum(seq.findPosition(index)); col =
* java.awt.Color.white; if (atomNo > 0) { col = sl.getColour(atomNo,
}
}
- public synchronized void sendSelection(
- jalview.datamodel.SequenceGroup selection,
- jalview.datamodel.ColumnSelection colsel, SelectionSource source)
+ public synchronized void sendSelection(SequenceGroup selection,
+ ColumnSelection colsel, SelectionSource source)
{
for (SelectionListener slis : sel_listeners)
{
Vector<AlignmentViewPanelListener> view_listeners = new Vector<AlignmentViewPanelListener>();
public synchronized void sendViewPosition(
- jalview.api.AlignmentViewPanel source, int startRes, int endRes,
+AlignmentViewPanel source,
+ int startRes, int endRes,
int startSeq, int endSeq)
{