if(protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
pdbentry.setFile("INLINE"+pdb.id);
- //if (fr!=null)
- // fr.featuresAdded();
+
}catch(Exception ex)
{
ex.printStackTrace();
ssm.addStructureViewerListener(this);
- colourBySequence(ap.getSequenceRenderer(),
- ap.av.getShowSequenceFeatures() ?
- fr : null);
+ colourBySequence();
int max = -10;
int maxchain = -1;
}
}
seqColoursReady = true;
- colourBySequence(ap.getSequenceRenderer(),
- ap.av.getShowSequenceFeatures() ?
- fr : null);
+ colourBySequence();
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 seqcanvasfr)
+ void colourBySequence()
{
+ SequenceRenderer sr = ap.getSequenceRenderer();
+
StructureMapping[] mapping = ssm.getMapping(pdbentry.getFile());
boolean showFeatures = false;
- if (seqcanvasfr!=null)
+ if (ap.av.getShowSequenceFeatures())
{
if (fr == null)
{
fr = new jalview.appletgui.FeatureRenderer(ap.av);
}
- fr.transferSettings(seqcanvasfr);
+ fr.transferSettings(ap.getFeatureRenderer());
showFeatures = true;
}
public void updateColours(Object source)
{
AlignmentPanel ap = (AlignmentPanel) source;
- colourBySequence(ap.getSequenceRenderer(),
- ap.av.getShowSequenceFeatures() ?
- fr : null);
+ colourBySequence();
redrawneeded = true;
repaint();
}
else if (evt.getSource() == seqButton)\r
{\r
pdbcanvas.bysequence = true;\r
- pdbcanvas.colourBySequence(pdbcanvas.ap.getSequenceRenderer(),\r
- pdbcanvas.ap.av.getShowSequenceFeatures() ?\r
- pdbcanvas.ap.getFeatureRenderer() : null);\r
+ pdbcanvas.colourBySequence();\r
\r
}\r
else if (evt.getSource() == zappo)\r