package jalview.appletgui;
import jalview.datamodel.AlignmentI;
+import jalview.renderer.AnnotationRenderer;
import java.awt.Color;
import java.awt.Dimension;
AlignmentPanel ap;
+ final AnnotationRenderer renderer = new AnnotationRenderer();
+
float scalew = 1f;
float scaleh = 1f;
if (av.isShowSequenceFeatures())
{
- fr.transferSettings(ap.seqPanel.seqCanvas.getFeatureRenderer());
+ fr.transferSettings(ap.getFeatureRenderer());
}
if (getSize().width > 0 && getSize().height > 0)
if (av.getAlignmentConservationAnnotation() != null)
{
+ renderer.updateFromAlignViewport(av);
for (col = 0; col < width; col++)
{
lastcol = (int) (col * sampleCol);
{
mg.translate(col, sequencesHeight);
- ap.annotationPanel.renderer.drawGraph(mg,
- av.getAlignmentConservationAnnotation(),
+ renderer.drawGraph(mg, av.getAlignmentConservationAnnotation(),
av.getAlignmentConservationAnnotation().annotations,
(int) (sampleCol) + 1, graphHeight,
(int) (col * sampleCol), (int) (col * sampleCol) + 1);
*/
package jalview.gui;
+import jalview.api.FeatureRenderer;
import jalview.renderer.AnnotationRenderer;
import java.awt.Color;
// main visible SeqCanvas
SequenceRenderer sr;
- jalview.renderer.seqfeatures.FeatureRenderer fr;
+ FeatureRenderer fr;
/**
* Creates a new OverviewPanel object.
// the overview is being calculated
boolean resizeAgain = false;
- /**
- * DOCUMENT ME!
- */
@Override
public void run()
{
miniMe = null;
+ int alwidth = av.getAlignment().getWidth();
+ int alheight = av.getAlignment().getHeight()
+ + av.getAlignment().getHiddenSequences().getSize();
if (av.isShowSequenceFeatures())
{
- fr.transferSettings(ap.getSeqPanel().seqCanvas.getFeatureRenderer());
+ fr.transferSettings(ap.getFeatureRenderer());
}
- int alwidth = av.getAlignment().getWidth();
- int alheight = av.getAlignment().getHeight()
- + av.getAlignment().getHiddenSequences().getSize();
setPreferredSize(new Dimension(width, sequencesHeight + graphHeight));
if (av.isShowSequenceFeatures())
{
- color = fr.findFeatureColour(color, seq, lastcol);
+ color = fr.findFeatureColour(new Color(color), seq, lastcol)
+ .getRGB();
}
}
else