Beispiel #1
0
 public void AddBarRenderer(BarRendererBase renderer)
 {
     renderer.Staff = this;
     renderer.Index = BarRenderers.Count;
     renderer.ReLayout();
     BarRenderers.Add(renderer);
     StaveGroup.Layout.RegisterBarRenderer(StaveId, renderer);
 }
Beispiel #2
0
        public void AddBar(Bar bar)
        {
            var renderer = _factory.Create(bar);

            renderer.Stave = this;
            renderer.Index = BarRenderers.Count;
            renderer.DoLayout();
            BarRenderers.Add(renderer);
            StaveGroup.Layout.RegisterBarRenderer(StaveId, bar.Index, renderer);
        }
Beispiel #3
0
        public void AddBar(Bar bar)
        {
            BarRendererBase renderer;

            if (bar == null)
            {
                renderer = new BarRendererBase(bar);
            }
            else
            {
                renderer = _factory.Create(bar);
            }
            renderer.Staff = this;
            renderer.Index = BarRenderers.Count;
            renderer.DoLayout();
            BarRenderers.Add(renderer);
            if (bar != null)
            {
                StaveGroup.Layout.RegisterBarRenderer(StaveId, renderer);
            }
        }
Beispiel #4
0
        public void AddBar(Bar bar, BarLayoutingInfo layoutingInfo)
        {
            BarRendererBase renderer;

            if (bar == null)
            {
                renderer = new BarRendererBase(StaveGroup.Layout.Renderer, bar);
            }
            else
            {
                renderer = _factory.Create(StaveGroup.Layout.Renderer, bar, StaveGroup.Layout.Renderer.Settings.Staves);
            }
            renderer.Staff         = this;
            renderer.Index         = BarRenderers.Count;
            renderer.LayoutingInfo = layoutingInfo;
            renderer.DoLayout();
            renderer.RegisterLayoutingInfo();
            BarRenderers.Add(renderer);
            if (bar != null)
            {
                StaveGroup.Layout.RegisterBarRenderer(StaveId, renderer);
            }
        }