private boolean hmmUseInfoLetterHeight;
- private boolean showHMMSequenceLogo;
+ private boolean hmmShowSequenceLogo;
private boolean hmmNormaliseSequenceLogo;
showSequenceLogo = seqsel.showSequenceLogo;
normaliseSequenceLogo = seqsel.normaliseSequenceLogo;
showConsensusHistogram = seqsel.showConsensusHistogram;
- showHMMSequenceLogo = seqsel.showHMMSequenceLogo;
+ hmmShowSequenceLogo = seqsel.hmmShowSequenceLogo;
hmmNormaliseSequenceLogo = seqsel.hmmNormaliseSequenceLogo;
hmmShowHistogram = seqsel.hmmShowHistogram;
idColour = seqsel.idColour;
// recalcConservation(); TODO don't know what to do here next
}
this.hmmShowHistogram = state;
-
}
public boolean isShowHMMSequenceLogo()
{
- return showHMMSequenceLogo;
+ return hmmShowSequenceLogo;
}
- public void setshowHMMSequenceLogo(boolean state)
+ public void setShowHMMSequenceLogo(boolean state)
{
- showHMMSequenceLogo = state;
-
+ hmmShowSequenceLogo = state;
}
public boolean isNormaliseHMMSequenceLogo()
public void setNormaliseHMMSequenceLogo(boolean state)
{
- normaliseSequenceLogo = state;
+ hmmNormaliseSequenceLogo = state;
}
@Override
showSequenceLogo = Cache.getDefault("SHOW_CONSENSUS_LOGO", false);
normaliseSequenceLogo = Cache.getDefault("NORMALISE_CONSENSUS_LOGO",
false);
+ // for now, use consensus options for Information till it gets its own
+ setShowHMMSequenceLogo(showSequenceLogo);
+ setNormaliseHMMSequenceLogo(normaliseSequenceLogo);
+ setShowInformationHistogram(showConsensusHistogram);
showGroupConsensus = Cache.getDefault("SHOW_GROUP_CONSENSUS", false);
showConsensus = Cache.getDefault("SHOW_IDENTITY", true);
if (!ann.groupRef.isUseInfoLetterHeight())
{
ann.groupRef.setIgnoreBelowBackground(cbmi.getState());
+ // todo and recompute group annotation
}
}
else if (!ap.av.isInfoLetterHeight())
{
ap.av.setIgnoreBelowBackground(cbmi.getState(), ap);
+ // todo and recompute annotation
}
- ap.alignmentChanged();
+ ap.alignmentChanged(); // todo not like this
}
});
pop.add(cbmi);
{
ann.groupRef.setInfoLetterHeight((letterHeight.getState()));
ann.groupRef.setIgnoreBelowBackground(true);
+ // todo and recompute group annotation
}
else
{
ap.av.setInfoLetterHeight(letterHeight.getState(), ap);
ap.av.setIgnoreBelowBackground(true, ap);
+ // todo and recompute annotation
}
ap.alignmentChanged();
}
@Override
public void actionPerformed(ActionEvent e)
{
- ann.groupRef.setshowHMMSequenceLogo(cprofl.getState());
+ ann.groupRef.setShowHMMSequenceLogo(cprofl.getState());
ap.repaint();
}
});
ann.groupRef
.setNormaliseHMMSequenceLogo(cproflnorm.getState());
// automatically enable logo display if we're clicked
- ann.groupRef.setshowHMMSequenceLogo(true);
+ ann.groupRef.setShowHMMSequenceLogo(true);
ap.repaint();
}
});
/**
* should hmm profile be rendered by default
*/
- protected boolean showHMMSequenceLogo = false;
+ protected boolean hmmShowSequenceLogo = false;
/**
* should hmm profile be rendered normalised to row height
*/
- protected boolean normaliseHMMSequenceLogo = false;
+ protected boolean hmmNormaliseSequenceLogo = false;
/**
* should information histograms be rendered by default
*/
- protected boolean showInformationHistogram = true;
+ protected boolean hmmShowHistogram = true;
/**
* @return the showConsensusProfile
@Override
public boolean isShowHMMSequenceLogo()
{
- return showHMMSequenceLogo;
+ return hmmShowSequenceLogo;
}
/**
public void setShowHMMSequenceLogo(boolean showHMMSequenceLogo)
{
- if (showHMMSequenceLogo != this.showHMMSequenceLogo)
+ if (showHMMSequenceLogo != this.hmmShowSequenceLogo)
{
- this.showHMMSequenceLogo = showHMMSequenceLogo;
+ this.hmmShowSequenceLogo = showHMMSequenceLogo;
// TODO: updateAnnotation if description (tooltip) will show
// profile in place of information content?
// calculator.updateAnnotationFor(InformationThread.class);
}
- this.showHMMSequenceLogo = showHMMSequenceLogo;
+ this.hmmShowSequenceLogo = showHMMSequenceLogo;
}
/**
/**
* @param showInformationHistogram
- * the showInformationHistogram to set
*/
public void setShowInformationHistogram(boolean showInformationHistogram)
{
- this.showInformationHistogram = showInformationHistogram;
+ this.hmmShowHistogram = showInformationHistogram;
}
/**
@Override
public boolean isShowInformationHistogram()
{
- return this.showInformationHistogram;
+ return this.hmmShowHistogram;
}
/**
sg.setshowSequenceLogo(showprf);
sg.setShowConsensusHistogram(showConsHist);
sg.setNormaliseSequenceLogo(normLogo);
- sg.setshowHMMSequenceLogo(showHMMPrf);
+ sg.setShowHMMSequenceLogo(showHMMPrf);
sg.setShowInformationHistogram(showInfoHist);
sg.setNormaliseHMMSequenceLogo(normHMMLogo);
}
@Override
public boolean isNormaliseHMMSequenceLogo()
{
- return normaliseHMMSequenceLogo;
+ return hmmNormaliseSequenceLogo;
}
public void setNormaliseHMMSequenceLogo(boolean state)
{
- normaliseHMMSequenceLogo = state;
+ hmmNormaliseSequenceLogo = state;
}
}