From: gmungoc Date: Fri, 29 Jan 2016 16:10:56 +0000 (+0000) Subject: JAL-1705 copy feature settings when opening a split frame for show X-Git-Tag: Release_2_10_0~296^2~49 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7e8ed915e35f83bad3f438a2d814a84678296a33;p=jalview.git JAL-1705 copy feature settings when opening a split frame for show product --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 5ff7c6c..c047780 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -4831,6 +4831,17 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, .isShowSequenceFeatures(); newFrame.setShowSeqFeatures(showSequenceFeatures); copyThis.setShowSeqFeatures(showSequenceFeatures); + FeatureRenderer myFeatureStyling = alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer(); + /* + * copy feature rendering settings to split frame + */ + newFrame.alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer().transferSettings( + myFeatureStyling); + copyThis.alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer().transferSettings( + myFeatureStyling); SplitFrame sf = new SplitFrame(dna ? copyThis : newFrame, dna ? newFrame : copyThis); newFrame.setVisible(true);