public virtual void ApplyLayoutingInfo(BarLayoutingInfo info)
 {
     PreNotes.Width = info.GetPreBeatSize(Beat);
     OnNotes.Width  = info.GetOnBeatSize(Beat);
     OnNotes.X      = PreNotes.X + PreNotes.Width;
     OnTimeX        = OnNotes.X + OnNotes.Width / 2;
     OnNotes.UpdateBeamingHelper();
 }
        public virtual void RegisterLayoutingInfo(BarLayoutingInfo layoutings)
        {
            var preBeatStretch = PreNotes.Width + OnNotes.Width / 2;

            layoutings.AddBeatSpring(Beat, MinWidth, preBeatStretch);
            // store sizes for special renderers like the EffectBarRenderer
            layoutings.SetPreBeatSize(Beat, PreNotes.Width);
            layoutings.SetOnBeatSize(Beat, OnNotes.Width);
        }
Example #3
0
 public void ApplyLayoutingInfo(BarLayoutingInfo info)
 {
     for (int i = 0, j = BeatGlyphs.Count; i < j; i++)
     {
         var b = BeatGlyphs[i];
         b.ApplyLayoutingInfo(info);
     }
     ScaleToForce(Renderer.Settings.StretchForce);
 }
Example #4
0
 public void RegisterLayoutingInfo(BarLayoutingInfo info)
 {
     info.UpdateVoiceSize(Width);
     for (int i = 0, j = BeatGlyphs.Count; i < j; i++)
     {
         var b = BeatGlyphs[i];
         b.RegisterLayoutingInfo(info);
     }
 }
Example #5
0
        public void RegisterLayoutingInfo(BarLayoutingInfo info)
        {
            info.UpdateVoiceSize(Width);
            var beatGlyphs = BeatGlyphs;

            foreach (var b in beatGlyphs)
            {
                b.RegisterLayoutingInfo(info);
            }
        }
Example #6
0
        public void ApplyLayoutingInfo(BarLayoutingInfo info)
        {
            var beatGlyphs = BeatGlyphs;

            foreach (var b in beatGlyphs)
            {
                b.ApplyLayoutingInfo(info);
            }
            ScaleToForce(Math.Max(Renderer.Settings.StretchForce, info.MinStretchForce));
        }
Example #7
0
        public virtual void ApplyLayoutingInfo(BarLayoutingInfo info)
        {
            var offset = info.GetBeatCenterX(Beat) - OnNotes.CenterX;

            PreNotes.X     = offset;
            PreNotes.Width = info.GetPreBeatSize(Beat);
            OnNotes.Width  = info.GetOnBeatSize(Beat);
            OnNotes.X      = PreNotes.X + PreNotes.Width;
            OnNotes.UpdateBeamingHelper();
        }
 public void ApplyLayoutingInfo(BarLayoutingInfo info)
 {
     if (UseLayoutingInfo)
     {
         PreNotes.Width = info.GetPreBeatSize(Beat);
         OnNotes.Width  = info.GetOnBeatSize(Beat);
         OnNotes.X      = PreNotes.X + PreNotes.Width;
         OnTimeX        = OnNotes.X + OnNotes.Width / 2;
     }
 }
Example #9
0
        public virtual void RegisterLayoutingInfo(BarLayoutingInfo layoutings)
        {
            var preBeatStretch  = OnTimeX;
            var postBeatStretch = 0f;

            foreach (var tie in Ties)
            {
                if (tie.Width > postBeatStretch)
                {
                    postBeatStretch = tie.Width;
                }
            }
            postBeatStretch += OnNotes.X + (OnNotes.Width - OnNotes.CenterX);

            layoutings.AddBeatSpring(Beat, preBeatStretch, postBeatStretch);
            // store sizes for special renderers like the EffectBarRenderer
            layoutings.SetPreBeatSize(Beat, PreNotes.Width);
            layoutings.SetOnBeatSize(Beat, OnNotes.Width);
            layoutings.SetBeatCenterX(Beat, OnNotes.CenterX);
        }
Example #10
0
        public virtual void RegisterLayoutingInfo(BarLayoutingInfo info)
        {
            LayoutingInfo = info;

            var preSize = _preBeatGlyphs.Width;

            if (info.PreBeatSize < preSize)
            {
                info.PreBeatSize = preSize;
            }

            foreach (var voice in _voiceContainers)
            {
                var c = _voiceContainers[voice];
                c.RegisterLayoutingInfo(info);
            }

            var postSize = _postBeatGlyphs.Width;

            if (info.PostBeatSize < postSize)
            {
                info.PostBeatSize = postSize;
            }
        }