private void PaintFooter(float cx, float cy, ICanvas canvas, BeamingHelper h)
{
var beat = h.Beats[0];
if (beat.Duration == Duration.Whole || beat.Duration == Duration.DoubleWhole)
{
return;
}
//
// draw line
//
var beatLineX = h.GetBeatLineX(beat) + Scale;
const float topY = 0;
var bottomY = Height;
float beamY = _direction == BeamDirection.Down ? bottomY : topY;
canvas.BeginPath();
canvas.MoveTo(cx + X + beatLineX, cy + Y + topY);
canvas.LineTo(cx + X + beatLineX, cy + Y + bottomY);
canvas.Stroke();
//
// Draw beam
//
var glyph = new BeamGlyph(beatLineX, beamY, beat.Duration, _direction, false);
glyph.Renderer = this;
glyph.DoLayout();
glyph.Paint(cx + X, cy + Y, canvas);
}