boolean centreColLabels, centreColLabelsDef = av
.getCentreColumnLabels();
boolean scaleColLabel = false;
+ AlignmentAnnotation consensusAnnot=av.getAlignmentConsensusAnnotation();
+ boolean renderHistogram = true, renderProfile = true, normaliseProfile = false;
BitSet graphGroupDrawn = new BitSet();
int charOffset = 0; // offset for a label
else if (row.graph == AlignmentAnnotation.BAR_GRAPH)
{
drawBarGraph(g, row, row_annotations, startRes, endRes,
- row.graphMin, row.graphMax, y);
+ row.graphMin, row.graphMax, y, renderHistogram,renderProfile,normaliseProfile);
}
}
} else {
public void drawBarGraph(Graphics g, AlignmentAnnotation _aa,
Annotation[] aa_annotations, int sRes, int eRes, float min,
- float max, int y)
+ float max, int y, boolean renderHistogram,boolean renderProfile,boolean normaliseProfile)
{
if (sRes > aa_annotations.length)
{
int column;
int aaMax = aa_annotations.length - 1;
- boolean renderHistogram = true, renderProfile = true, normaliseProfile = false;
- // if (aa.autoCalculated && aa.label.startsWith("Consensus"))
- {
- // TODO: generalise this to have render styles for consensus/profile data
- if (_aa.groupRef != null)
- {
- renderHistogram = _aa.groupRef.isShowConsensusHistogram();
- renderProfile = _aa.groupRef.isShowSequenceLogo();
- normaliseProfile = _aa.groupRef.isNormaliseSequenceLogo();
- }
- else
- {
- renderHistogram = av_renderHistogram;
- renderProfile = av_renderProfile;
- normaliseProfile = av_normaliseProfile;
- }
- }
while (x < eRes - sRes)
{
column = sRes + x;