JAL-3560 avoiding Graphics.setClip
authorBobHanson <hansonr@stolaf.edu>
Fri, 20 Mar 2020 05:12:33 +0000 (00:12 -0500)
committerBobHanson <hansonr@stolaf.edu>
Fri, 20 Mar 2020 05:12:33 +0000 (00:12 -0500)
commit12816bbe5d1b492ac183fc2b2a25e7d988a09ef6
treeac187bc69fc446bb83a551b82834dfbc1fb58051
parentd7e1a6002a8d491a14592a763828b4f8af7d720d
JAL-3560 avoiding Graphics.setClip

Now that Graphics.setClip is supported, it is important to avoid it
whenever possible. It requires a full run back through the graphics
stack and return twice in order to clear the clip and reset it with all
other characteristics of the graphics state intact. This was
particularly notable in JViewport, creating very sluggish handling of
FeatureSettings, particularly in Firefox.
src/jalview/appletgui/SeqCanvas.java
src/jalview/gui/AlignmentPanel.java
src/jalview/gui/TreeCanvas.java