if (getWidth() == od.getWidth()
&& getHeight() == od.getHeight() + ph)
{
+ // BH: resizing is now exceptionally fast.
updateOverviewImage();
}
else
}
od.setWidth(w);
od.setHeight(h - ph);
- repaint();
+ updateOverviewImage();
+ // repaint();
}
// BH 2019.07.29 this is unnecessary -- it is what layout managers are
// for:
});
- /*
- * Javascript does not call componentResized on initial display,
- * so do the update here
- */
- if (Platform.isJS())
- {
- updateOverviewImage();
- }
+ // /*
+ // * Javascript does not call componentResized on initial display,
+ // * so do the update here
+ // */
+ // if (Platform.isJS())
+ // {
+ // updateOverviewImage();
+ // }
}
/**
}
/**
- * Updates the overview image when the related alignment panel is updated
+ * Updates the overview image when the related alignment panel is updated.
+ *
+ * Cases:
+ *
+ * AlignFrame.setFeatureGroupState
+ *
+ * AlignmentPanel.paintAlignment(true,...) (117 references)
+ *
+ * OverviewPanel..componentResized() OverviewPanel.toggleHiddenColumns()
+ *
+ * PopupMenu for action.reveal_sequences, action.reveal_all
+ *
+ * SliderPanel.mouseReleased()
+ *
*/
public void updateOverviewImage()
{
{
if (canvas != null)
{
+ setBoxPosition();
canvas.draw(av.isShowSequenceFeatures(),
(av.isShowAnnotation()
&& av.getAlignmentConservationAnnotation() != null),
ap.getFeatureRenderer());
- setBoxPosition();
}
}