showText.setState(sg.getDisplayText());
showColourText.setState(sg.getColourText());
showBoxes.setState(sg.getDisplayBoxes());
- displayNonconserved.setState(sg.getShowunconserved());
+ displayNonconserved.setState(sg.getShowNonconserved());
if (!ap.av.alignment.getGroups().contains(sg))
{
groupMenu.remove(unGroupMenuItem);
public void showNonconserved_itemStateChanged()
{
- getGroup().setShowunconserved(this.displayNonconserved.getState());
+ getGroup().setShowNonconserved(this.displayNonconserved.getState());
refresh();
}
annotationPanelMenuItem.addItemListener(this);
colourTextMenuItem.setLabel("Colour Text");
colourTextMenuItem.addItemListener(this);
- displayNonconservedMenuItem.setLabel("Show non-conserved");
+ displayNonconservedMenuItem.setLabel("Show nonconserved");
displayNonconservedMenuItem.addItemListener(this);
alProperties.addActionListener(this);
overviewMenuItem.setLabel("Overview Window");
}
/**
- * @param showUnconserved
+ * @param showNonconserved
* the showUnconserved to set
*/
public void setShowunconserved(boolean displayNonconserved)
getBoxColour(currentSequenceGroup.cs, seq, i);
graphics.setColor(resBoxColour.darker());
}
- if (currentSequenceGroup.getShowunconserved())
+ if (currentSequenceGroup.getShowNonconserved())
{
// cheat - use this if we have a consensus for each group: s =
// getDisplayChar(currentSequenceGroup.getConsensus(), i, s, '.');
/**
* after Olivier's non-conserved only character display
*/
- boolean showUnconserved = false;
+ boolean showNonconserved = false;
/**
* group members
/**
* @return the showUnconserved
*/
- public boolean getShowunconserved()
+ public boolean getShowNonconserved()
{
- return showUnconserved;
+ return showNonconserved;
}
/**
- * @param showUnconserved
+ * @param showNonconserved
* the showUnconserved to set
*/
- public void setShowunconserved(boolean displayNonconserved)
+ public void setShowNonconserved(boolean displayNonconserved)
{
- this.showUnconserved = displayNonconserved;
+ this.showNonconserved = displayNonconserved;
}
AlignmentAnnotation consensus = null, conservation = null;
annotationPanelMenuItem.setState(av.showAnnotation);
viewBoxesMenuItem.setSelected(av.showBoxes);
viewTextMenuItem.setSelected(av.showText);
- showUnconservedMenuItem.setSelected(av.showUnconserved);
+ showNonconservedMenuItem.setSelected(av.showUnconserved);
showGroupConsensus.setSelected(av.showGroupConsensus);
showGroupConservation.setSelected(av.showGroupConservation);
showConsensusHistogram.setSelected(av.showConsensusHistogram);
*/
protected void showUnconservedMenuItem_actionPerformed(ActionEvent e)
{
- viewport.setShowUnconserved(showUnconservedMenuItem.getState());
+ viewport.setShowUnconserved(showNonconservedMenuItem.getState());
alignPanel.paintAlignment(true);
}
// set view properties for each group
for (int g = 0; g < gps.length; g++)
{
- gps[g].setShowunconserved(viewport.getShowUnconserved());
+ gps[g].setShowNonconserved(viewport.getShowUnconserved());
gps[g].setIncludeAllConsSymbols(viewport
.isIncludeAllConsensusSymbols());
viewport.alignment.addGroup(gps[g]);
groups[i].setTextCol1(sg.textColour.getRGB());
groups[i].setTextCol2(sg.textColour2.getRGB());
groups[i].setTextColThreshold(sg.thresholdTextColour);
- groups[i].setShowUnconserved(sg.getShowunconserved());
+ groups[i].setShowUnconserved(sg.getShowNonconserved());
groups[i].setIgnoreGapsinConsensus(sg.getIgnoreGapsConsensus());
groups[i].setShowConsensusHistogram(sg.isShowConsensusHistogram());
groups[i].setShowSequenceLogo(sg.isShowSequenceLogo());
sg.textColour = new java.awt.Color(groups[i].getTextCol1());
sg.textColour2 = new java.awt.Color(groups[i].getTextCol2());
- sg.setShowunconserved(groups[i].hasShowUnconserved() ? groups[i]
+ sg.setShowNonconserved(groups[i].hasShowUnconserved() ? groups[i]
.isShowUnconserved() : false);
sg.thresholdTextColour = groups[i].getTextColThreshold();
if (groups[i].hasShowConsensusHistogram())
{
conservationMenuItem.setSelected(true);
}
- displayNonconserved.setSelected(sg.getShowunconserved());
+ displayNonconserved.setSelected(sg.getShowNonconserved());
showText.setSelected(sg.getDisplayText());
showColourText.setSelected(sg.getColourText());
showBoxes.setSelected(sg.getDisplayBoxes());
protected void showNonconserved_actionPerformed()
{
- getGroup().setShowunconserved(displayNonconserved.isSelected());
+ getGroup().setShowNonconserved(displayNonconserved.isSelected());
refresh();
}
{
graphics.setColor(currentSequenceGroup.textColour);
}
- if (currentSequenceGroup.getShowunconserved()) // todo optimize
+ if (currentSequenceGroup.getShowNonconserved()) // todo optimize
{
// todo - use sequence group consensus
s = getDisplayChar(av.consensus, i, s, '.');
text.append("displayBoxes=" + sg.getDisplayBoxes() + "\t");\r
text.append("displayText=" + sg.getDisplayText() + "\t");\r
text.append("colourText=" + sg.getColourText() + "\t");\r
- text.append("showUnconserved=" + sg.getShowunconserved() + "\t");\r
+ text.append("showUnconserved=" + sg.getShowNonconserved() + "\t");\r
if (sg.textColour != java.awt.Color.black)\r
{\r
text.append("textCol1="\r
}\r
else if (key.equalsIgnoreCase("showUnconserved"))\r
{\r
- sg.setShowunconserved(Boolean.valueOf(value).booleanValue());\r
+ sg.setShowNonconserved(Boolean.valueOf(value).booleanValue());\r
}\r
else if (key.equalsIgnoreCase("displayText"))\r
{\r
public JCheckBoxMenuItem colourTextMenuItem = new JCheckBoxMenuItem();
- public JCheckBoxMenuItem showUnconservedMenuItem = new JCheckBoxMenuItem();
+ public JCheckBoxMenuItem showNonconservedMenuItem = new JCheckBoxMenuItem();
JMenuItem htmlMenuItem = new JMenuItem();
viewTextMenuItem_actionPerformed(e);
}
});
- showUnconservedMenuItem.setText("Show Unconserved");
- showUnconservedMenuItem.setState(false);
- showUnconservedMenuItem
+ showNonconservedMenuItem.setText("Show nonconserved");
+ showNonconservedMenuItem.setState(false);
+ showNonconservedMenuItem
.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
formatMenu.add(colourTextMenuItem);
formatMenu.add(renderGapsMenuItem);
formatMenu.add(centreColumnLabelsMenuItem);
- formatMenu.add(showUnconservedMenuItem);
+ formatMenu.add(showNonconservedMenuItem);
selectMenu.add(findMenuItem);
selectMenu.addSeparator();
selectMenu.add(selectAllSequenceMenuItem);