Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2778

Overview panel redraws slowly when overlapping the alignment panel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.3
    • Fix Version/s: 2.10.4
    • Component/s: gui
    • Labels:
      None

      Description

      (Originally reported by [~geoff.barton])

      The overview panel allows the viewport position to be adjusted by dragging a red box representing the viewport's location. When dragging the box, the speed at which it is redrawn depends on whether the overview panel is overlapping the alignment panel (and possibly others - I'm still investigating the exact behaviour).

      If the overview does not overlap any other panels, the repaint is fast when dragging the box, regardless of the size of the overview panel. If the overview overlaps the alignment, the repaint becomes quite slow.

      It appears that repaints of the overlapped panels are directly triggering the paintComponent method in the overview. The resulting build-up of repaint calls seems to be causing the observed slowdown.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kmourao Kira Mourão
              Reporter:
              kmourao Kira Mourão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: