try{
pdb = ssm.setMapping(seq, pdbentry.getFile(), protocol);
+
+ if(protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
+ pdbentry.setFile("INLINE"+pdb.id);
//if (fr!=null)
// fr.featuresAdded();
}catch(Exception ex)
colourBySequence(ap.getSequenceRenderer(),
ap.av.getShowSequenceFeatures() ?
- ap.getFeatureRenderer() : null);
+ fr : null);
int max = -10;
int maxchain = -1;
seqColoursReady = true;
colourBySequence(ap.getSequenceRenderer(),
ap.av.getShowSequenceFeatures() ?
- ap.getFeatureRenderer() : null);
+ fr : null);
redrawneeded = true;
repaint();
}
// This method has been taken out of PDBChain to allow
// Applet and Application specific sequence renderers to be used
- void colourBySequence(SequenceRenderer sr, FeatureRenderer fr)
+ void colourBySequence(SequenceRenderer sr, FeatureRenderer seqcanvasfr)
{
StructureMapping[] mapping = ssm.getMapping(pdbentry.getFile());
boolean showFeatures = false;
- if (fr!=null)
+ if (seqcanvasfr!=null)
{
if (fr == null)
{
fr = new jalview.appletgui.FeatureRenderer(ap.av);
}
- fr.transferSettings(fr);
+
+ fr.transferSettings(seqcanvasfr);
+
showFeatures = true;
}
AlignmentPanel ap = (AlignmentPanel) source;
colourBySequence(ap.getSequenceRenderer(),
ap.av.getShowSequenceFeatures() ?
- ap.getFeatureRenderer() : null);
+ fr : null);
redrawneeded = true;
repaint();
}
import jalview.appletgui.*;\r
import jalview.datamodel.*;\r
import jalview.schemes.*;\r
-import jalview.structure.StructureListener;\r
-import jalview.structure.*;\r
+\r
\r
public class AppletPDBViewer\r
extends Frame implements ActionListener, ItemListener\r
\r
add(pdbcanvas, BorderLayout.CENTER);\r
\r
+ System.out.println(seq[0].getName()+" ASFA");\r
+\r
StringBuffer title = new StringBuffer(seq[0].getName()\r
+ ":"\r
+ pdbcanvas.pdbentry.getFile());\r