From 37fd8c26efada7832b61e5af5c0d56baa69608c3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 24 Sep 2012 17:53:09 +0100 Subject: [PATCH] JAL-958 revised applet parameter documentation to standardise on long form 'normaliseSequenceLogo', but still allow short form for legacy test pages. --- examples/appletParameters.html | 2 +- src/jalview/appletgui/AlignViewport.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/appletParameters.html b/examples/appletParameters.html index a03a3e0..106d977 100644 --- a/examples/appletParameters.html +++ b/examples/appletParameters.html @@ -512,7 +512,7 @@ pageTracker._trackPageview(); true of false (default is false) When true, shows a sequence logo above the consensus sequence (overlaid above the Consensus Histogram, if visible, with symbols coloured using the alignment's default colourscheme). (since 2.7) - normaliseLogo + normaliseSequenceLogo true of false (default is false) When true, all sequence logos will be normalised (all symbol stacks add up to full height of annotation row), rather than being scaled according to the fraction of symbols identical to the consensus. (since 2.8) diff --git a/src/jalview/appletgui/AlignViewport.java b/src/jalview/appletgui/AlignViewport.java index e0a6a71..64907ac 100644 --- a/src/jalview/appletgui/AlignViewport.java +++ b/src/jalview/appletgui/AlignViewport.java @@ -204,7 +204,7 @@ public class AlignViewport extends AlignmentViewport implements AlignViewportI, showSequenceLogo = applet.getDefaultParameter("showSequenceLogo", showSequenceLogo); - normaliseSequenceLogo = applet.getDefaultParameter("normaliseSequenceLogo", normaliseSequenceLogo); + normaliseSequenceLogo = applet.getDefaultParameter("normaliseSequenceLogo", applet.getDefaultParameter("normaliseLogo", normaliseSequenceLogo)); showGroupConsensus = applet.getDefaultParameter("showGroupConsensus", showGroupConsensus); -- 1.7.10.2