private HiddenColumns hiddenColumns;
private ProfilesI hconsensus;
+
+ private ProfilesI hSSconsensus;
private Hashtable<String, Object>[] complementConsensus;
private boolean av_ignoreGapsConsensus;
- private boolean vectorRendition = false;
+ private boolean renderingVectors = false;
private boolean glyphLineDrawn = false;
{
hiddenColumns = null;
hconsensus = null;
+ hSSconsensus = null;
complementConsensus = null;
hStrucConsensus = null;
fadedImage = null;
: row_annotations[column - 1].secondaryStructure;
boolean diffupstream = sCol == 0 || row_annotations[sCol - 1] == null
- || dc != row_annotations[sCol - 1].secondaryStructure;
+ || dc != row_annotations[sCol - 1].secondaryStructure
+ || !validEnd;
boolean diffdownstream = !validRes || !validEnd
|| row_annotations[column] == null
|| dc != row_annotations[column].secondaryStructure;
: row_annotations[column - 1].displayCharacter;
boolean diffupstream = sCol == 0 || row_annotations[sCol - 1] == null
- || !dc.equals(row_annotations[sCol - 1].displayCharacter);
+ || !dc.equals(row_annotations[sCol - 1].displayCharacter)
+ || !validEnd;
boolean diffdownstream = !validRes || !validEnd
|| row_annotations[column] == null
|| !dc.equals(row_annotations[column].displayCharacter);
columnSelection = av.getColumnSelection();
hiddenColumns = av.getAlignment().getHiddenColumns();
hconsensus = av.getSequenceConsensusHash();
+ hSSconsensus = av.getSequenceSSConsensusHash();
complementConsensus = av.getComplementConsensusHash();
hStrucConsensus = av.getRnaStructureConsensusHash();
av_ignoreGapsConsensus = av.isIgnoreGapsConsensus();
}
}
}
+
+ else if(aa.autoCalculated && aa.label.startsWith("SecondaryStructureConsensus"))
+ {
+ return AAFrequency.extractProfile(
+ hSSconsensus.get(column),
+ av_ignoreGapsConsensus);
+
+ }
+
else
{
if (aa.autoCalculated && aa.label.startsWith("StrucConsensus"))
{
if (g instanceof EpsGraphics2D || g instanceof SVGGraphics2D)
{
- this.setVectorRendition(true);
+ this.setVectorRendering(true);
}
Graphics2D g2d = (Graphics2D) g;
.getAlignmentStrucConsensusAnnotation();
final AlignmentAnnotation complementConsensusAnnot = av
.getComplementConsensusAnnotation();
+ final AlignmentAnnotation ssConsensusAnnot = av
+ .getAlignmentSecondaryStructureConsensusAnnotation();
BitSet graphGroupDrawn = new BitSet();
int charOffset = 0; // offset for a label
normaliseProfile = row.groupRef.isNormaliseSequenceLogo();
}
else if (row == consensusAnnot || row == structConsensusAnnot
- || row == complementConsensusAnnot)
+ || row == complementConsensusAnnot || row == ssConsensusAnnot)
{
renderHistogram = av_renderHistogram;
renderProfile = av_renderProfile;
// temp = x;
break;
default:
- if (isVectorRendition())
+ if (isVectorRendering())
{
// draw single full width glyphline
drawGlyphLine(g, lastSSX, endRes - x, y, iconOffset);
x, y, iconOffset, startRes, column, validRes, validEnd);
break;
default:
- if (isVectorRendition())
+ if (isVectorRendering())
{
// draw single full width glyphline
drawGlyphLine(g, lastSSX, endRes - x, y, iconOffset);
int x1 = lastSSX;
int x2 = (x * charWidth);
- if (USE_FILL_ROUND_RECT || isVectorRendition())
+ if (USE_FILL_ROUND_RECT || isVectorRendering())
{
// draw glyph line behind helix (visible in EPS or SVG output)
drawGlyphLine(g, lastSSX, x, y, iconOffset);
* {profile type, #values, total count, char1, pct1, char2, pct2...}
*/
int profl[] = getProfileFor(_aa, column);
+
+
// just try to draw the logo if profl is not null
if (profl != null && profl[2] != 0)
}
else
{
+
colour = profcolour.findColour(dc[0], column, null);
+
}
g.setColor(colour == Color.white ? Color.lightGray : colour);
private void setAntialias(Graphics g)
{
- if (isVectorRendition())
+ if (isVectorRendering())
{
// no need to antialias vector drawings
return;
private void unsetAntialias(Graphics g)
{
- if (isVectorRendition())
+ if (isVectorRendering())
{
// no need to antialias vector drawings
return;
RenderingHints.VALUE_ANTIALIAS_OFF);
}
- public void setVectorRendition(boolean b)
+ public void setVectorRendering(boolean b)
{
- vectorRendition = b;
+ renderingVectors = b;
}
- public boolean isVectorRendition()
+ public boolean isVectorRendering()
{
- return vectorRendition;
+ return renderingVectors;
}
}