+
+ /**
+ * consensus annotation includes all percentage for all symbols in column
+ * DISABLED FOR 2.5 RELEASE (bug #60064 logo rendering is not AWT 1.1
+ * compatible)
+ */
+ private boolean includeAllConsensusSymbols = false;
+
+ /**
+ * should conservation rows be shown for groups DISABLED FOR 2.5 RELEASE (bug
+ * 62446)
+ */
+ boolean showGroupConservation = false;
+
+ /**
+ * should consensus rows be shown for groups DISABLED FOR 2.5 RELEASE (bug
+ * 62446)
+ */
+ boolean showGroupConsensus = false;
+
+ /**
+ * should consensus profile be rendered by default DISABLED FOR 2.5 RELEASE
+ * (bug #60064 logo rendering is not AWT 1.1 compatible)
+ */
+ public boolean showSequenceLogo = false;
+
+ /**
+ * should consensus histograms be rendered by default
+ */
+ public boolean showConsensusHistogram = true;
+
+ /**
+ * @return the showConsensusProfile
+ */
+ public boolean isShowSequenceLogo()
+ {
+ return showSequenceLogo;
+ }
+
+ /**
+ * @param showSequenceLogo
+ * the new value public void setShowSequenceLogo(boolean
+ * showSequenceLogo) { this.showSequenceLogo = showSequenceLogo; }
+ */
+ /**
+ * @param showGroupConsensus
+ * the showGroupConsensus to set
+ */
+ public void setShowGroupConsensus(boolean showGroupConsensus)
+ {
+ this.showGroupConsensus = showGroupConsensus;
+ }
+
+ /**
+ * @return the includeAllConsensusSymbols
+ */
+ public boolean isIncludeAllConsensusSymbols()
+ {
+ return false;
+ }
+
+ /**
+ *
+ * @return flag to indicate if the consensus histogram should be rendered by
+ * default
+ */
+ public boolean isShowConsensusHistogram()
+ {
+ return this.showConsensusHistogram;
+ }
+
+ /**
+ * synthesize a column selection if none exists so it covers the given
+ * selection group. if wholewidth is false, no column selection is made if the
+ * selection group covers the whole alignment width.
+ *
+ * @param sg
+ * @param wholewidth
+ */
+ public void expandColSelection(SequenceGroup sg, boolean wholewidth)
+ {
+ int sgs, sge;
+ if (sg != null
+ && (sgs = sg.getStartRes()) >= 0
+ && sg.getStartRes() <= (sge = sg.getEndRes())
+ && (colSel == null || colSel.getSelected() == null || colSel
+ .getSelected().size() == 0))
+ {
+ if (!wholewidth && alignment.getWidth() == (1 + sge - sgs))
+ {
+ // do nothing
+ return;
+ }
+ if (colSel == null)
+ {
+ colSel = new ColumnSelection();
+ }
+ for (int cspos = sg.getStartRes(); cspos <= sg.getEndRes(); cspos++)
+ {
+ colSel.addElement(cspos);
+ }
+ }
+ }
+