import jalview.analysis.AlignSeq;
import jalview.appletgui.AlignmentPanel;
-import jalview.appletgui.FeatureRenderer;
+import jalview.appletgui.FeatureRendererAndEditor;
import jalview.appletgui.SequenceRenderer;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
boolean seqColoursReady = false;
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
AlignmentPanel ap;
{
if (fr == null)
{
- fr = new jalview.appletgui.FeatureRenderer(ap.av);
+ fr = new jalview.appletgui.FeatureRendererAndEditor(ap.av);
}
fr.transferSettings(ap.getFeatureRenderer());
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignmentPanel;
-import jalview.gui.FeatureRenderer;
+import jalview.gui.FeatureRendererAndEditor;
import jalview.gui.SequenceRenderer;
import jalview.structure.AtomSpec;
import jalview.structure.StructureListener;
{
if (fr == null)
{
- fr = new FeatureRenderer(ap);
+ fr = new FeatureRendererAndEditor(ap);
}
fr.transferSettings(ap.alignFrame.getFeatureRenderer());
@Override
public jalview.api.FeatureRenderer cloneFeatureRenderer()
{
- FeatureRenderer nfr = new FeatureRenderer(av);
+ FeatureRendererAndEditor nfr = new FeatureRendererAndEditor(av);
nfr.transferSettings(seqPanel.seqCanvas.fr);
return nfr;
}
// boolean colourBySequence = true;
- FeatureRenderer fr = null;
+ FeatureRendererAndEditor fr = null;
AppletJmolBinding jmb;
{
if (appletJmolBinding.fr == null)
{
- appletJmolBinding.fr = new jalview.appletgui.FeatureRenderer(
+ appletJmolBinding.fr = new jalview.appletgui.FeatureRendererAndEditor(
appletJmolBinding.ap.av);
}
Frame owner;
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
FeatureSettings fs = null;
// this.ap = fsettings.ap;
}
- private void init(FeatureRenderer frenderer, String type)
+ private void init(FeatureRendererAndEditor frenderer, String type)
{
this.type = type;
fr = frenderer;
* @author $author$
* @version $Revision$
*/
-public class FeatureRenderer extends
+public class FeatureRendererAndEditor extends
jalview.renderer.seqfeatures.FeatureRenderer
{
* @param av
* DOCUMENT ME!
*/
- public FeatureRenderer(AlignmentViewport av)
+ public FeatureRendererAndEditor(AlignmentViewport av)
{
super();
this.av = av;
colourPanel = new FeatureColourPanel();
colourPanel.setSize(110, 15);
- final FeatureRenderer fr = this;
+ final FeatureRendererAndEditor fr = this;
Panel panel = new Panel(new GridLayout(3, 1));
MouseListener, MouseMotionListener, ActionListener,
AdjustmentListener, FeatureSettingsControllerI
{
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
AlignmentPanel ap;
// main visible SeqCanvas
SequenceRenderer sr;
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
Frame nullFrame;
sr.graphics = nullFrame.getGraphics();
sr.renderGaps = false;
sr.forOverview = true;
- fr = new FeatureRenderer(av);
+ fr = new FeatureRendererAndEditor(av);
// scale the initial size of overviewpanel to shape of alignment
float initialScale = (float) av.getAlignment().getWidth()
public class SeqCanvas extends Panel
{
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
SequenceRenderer sr;
public SeqCanvas(AlignViewport av)
{
this.av = av;
- fr = new FeatureRenderer(av);
+ fr = new FeatureRendererAndEditor(av);
sr = new SequenceRenderer(av);
PaintRefresher.Register(this, av.getSequenceSetId());
updateViewport();
return av;
}
- public FeatureRenderer getFeatureRenderer()
+ public FeatureRendererAndEditor getFeatureRenderer()
{
return fr;
}
init();
}
- public UserDefinedColours(FeatureRenderer fr, Frame alignframe)
+ public UserDefinedColours(FeatureRendererAndEditor fr, Frame alignframe)
{
caller = fr;
originalColour = fr.colourPanel.getBackground();
.maxColour_actionPerformed(getColor());
}
}
- else if (caller instanceof FeatureRenderer)
+ else if (caller instanceof FeatureRendererAndEditor)
{
- ((FeatureRenderer) caller).colourPanel.updateColor(getColor());
+ ((FeatureRendererAndEditor) caller).colourPanel.updateColor(getColor());
}
else if (caller instanceof FeatureColourChooser)
{
.maxColour_actionPerformed((Color) originalColour);
}
}
- else if (caller instanceof FeatureRenderer)
+ else if (caller instanceof FeatureRendererAndEditor)
{
- ((FeatureRenderer) caller).colourPanel.updateColor(originalColour);
+ ((FeatureRendererAndEditor) caller).colourPanel.updateColor(originalColour);
}
return jalview.bin.Cache.getProperty("VERSION");
}
- public FeatureRenderer getFeatureRenderer()
+ public FeatureRendererAndEditor getFeatureRenderer()
{
return alignPanel.getSeqPanel().seqCanvas.getFeatureRenderer();
}
public jalview.api.FeatureRenderer cloneFeatureRenderer()
{
- return new FeatureRenderer(this);
+ return new FeatureRendererAndEditor(this);
}
@Override
{
private AppJmol appJmolWindow;
- private FeatureRenderer fr = null;
+ private FeatureRendererAndEditor fr = null;
public AppJmolBinding(AppJmol appJmol, StructureSelectionManager sSm,
PDBEntry[] pdbentry, SequenceI[][] sequenceIs, String[][] chains,
}
@Override
- public FeatureRenderer getFeatureRenderer(AlignmentViewPanel alignment)
+ public FeatureRendererAndEditor getFeatureRenderer(AlignmentViewPanel alignment)
{
AlignmentPanel ap = (alignment == null) ? appJmolWindow
.getAlignmentPanel() : (AlignmentPanel) alignment;
{
if (fr == null)
{
- fr = (jalview.gui.FeatureRenderer) ap.cloneFeatureRenderer();
+ fr = (jalview.gui.FeatureRendererAndEditor) ap.cloneFeatureRenderer();
}
else
{
public class FeatureColourChooser extends JalviewDialog
{
// FeatureSettings fs;
- FeatureRenderer fr;
+ FeatureRendererAndEditor fr;
private GraduatedColor cs;
String type = null;
- public FeatureColourChooser(FeatureRenderer frender, String type)
+ public FeatureColourChooser(FeatureRendererAndEditor frender, String type)
{
this(frender, false, type);
}
- public FeatureColourChooser(FeatureRenderer frender, boolean block,
+ public FeatureColourChooser(FeatureRendererAndEditor frender, boolean block,
String type)
{
this.fr = frender;
* @author $author$
* @version $Revision$
*/
-public class FeatureRenderer extends
+public class FeatureRendererAndEditor extends
jalview.renderer.seqfeatures.FeatureRenderer implements
jalview.api.FeatureRenderer
{
* @param av
* DOCUMENT ME!
*/
- public FeatureRenderer(AlignmentPanel ap)
+ public FeatureRendererAndEditor(AlignmentPanel ap)
{
super();
this.ap = ap;
final JSpinner end = new JSpinner();
start.setPreferredSize(new Dimension(80, 20));
end.setPreferredSize(new Dimension(80, 20));
- final FeatureRenderer me = this;
+ final FeatureRendererAndEditor me = this;
final JLabel colour = new JLabel();
colour.setOpaque(true);
// colour.setBorder(BorderFactory.createEtchedBorder());
JPanel dasSettingsPane = new JPanel();
- final FeatureRenderer fr;
+ final FeatureRendererAndEditor fr;
public final AlignFrame af;
{
private ChimeraViewFrame cvf;
- private FeatureRenderer fr = null;
+ private FeatureRendererAndEditor fr = null;
public JalviewChimeraBindingModel(ChimeraViewFrame chimeraViewFrame,
StructureSelectionManager ssm, PDBEntry[] pdbentry,
}
@Override
- public FeatureRenderer getFeatureRenderer(AlignmentViewPanel alignment)
+ public FeatureRendererAndEditor getFeatureRenderer(AlignmentViewPanel alignment)
{
AlignmentPanel ap = (alignment == null) ? cvf.getAlignmentPanel()
: (AlignmentPanel) alignment;
{
if (fr == null)
{
- fr = (jalview.gui.FeatureRenderer) ap.cloneFeatureRenderer();
+ fr = (jalview.gui.FeatureRendererAndEditor) ap.cloneFeatureRenderer();
}
else
{
sr = new SequenceRenderer(av);
sr.renderGaps = false;
sr.forOverview = true;
- fr = new FeatureRenderer(ap);
+ fr = new FeatureRendererAndEditor(ap);
// scale the initial size of overviewpanel to shape of alignment
float initialScale = (float) av.getAlignment().getWidth()
*/
public class SeqCanvas extends JComponent
{
- final FeatureRenderer fr;
+ final FeatureRendererAndEditor fr;
final SequenceRenderer sr;
{
this.av = ap.av;
updateViewport();
- fr = new FeatureRenderer(ap);
+ fr = new FeatureRendererAndEditor(ap);
sr = new SequenceRenderer(av);
setLayout(new BorderLayout());
PaintRefresher.Register(this, av.getSequenceSetId());
return sr;
}
- public FeatureRenderer getFeatureRenderer()
+ public FeatureRendererAndEditor getFeatureRenderer()
{
return fr;
}
import jalview.datamodel.SequenceI;
import jalview.gui.AlignViewport;
import jalview.gui.AlignmentPanel;
-import jalview.gui.FeatureRenderer;
+import jalview.gui.FeatureRendererAndEditor;
import jalview.gui.SequenceRenderer;
import jalview.util.MessageManager;
Color color;
public HTMLOutput(AlignmentPanel ap, SequenceRenderer sr,
- FeatureRenderer fr1)
+ FeatureRendererAndEditor fr1)
{
this.av = ap.av;
this.sr = sr;
- fr = new FeatureRenderer(ap);
+ fr = new FeatureRendererAndEditor(ap);
fr.transferSettings(fr1);
JalviewFileChooser chooser = new JalviewFileChooser(
SequenceRenderer sr = ((jalview.appletgui.AlignmentPanel) source)
.getSequenceRenderer();
FeatureRenderer fr = ((jalview.appletgui.AlignmentPanel) source).av
- .isShowSequenceFeatures() ? new jalview.appletgui.FeatureRenderer(
+ .isShowSequenceFeatures() ? new jalview.appletgui.FeatureRendererAndEditor(
((jalview.appletgui.AlignmentPanel) source).av) : null;
if (fr != null)
{
- ((jalview.appletgui.FeatureRenderer) fr)
+ ((jalview.appletgui.FeatureRendererAndEditor) fr)
.transferSettings(((jalview.appletgui.AlignmentPanel) source)
.getFeatureRenderer());
}