public override void AddMetricsToEdge(HorizontalEdge horizontalEdge) { if (FramedRegionEndTextMetrics != null) { horizontalEdge.Add(FramedRegionEndTextMetrics); } AddBasicMetricsToEdge(horizontalEdge); }
internal void AddToEdge(HorizontalEdge horizontalEdge) { if (horizontalEdge is TopEdge topEdge) { topEdge.Add(this); } else if (horizontalEdge is BottomEdge bottomEdge) { bottomEdge.Add(this); } }
protected void AddBasicMetricsToEdge(HorizontalEdge horizontalEdge) { if (StaffNameMetrics != null) { horizontalEdge.Add(StaffNameMetrics); } if (BarnumberMetrics != null) { horizontalEdge.Add(BarnumberMetrics); } }
public override void AddMetricsToEdge(HorizontalEdge horizontalEdge) { ChordMetrics.AddToEdge(horizontalEdge); }
public override void AddMetricsToEdge(HorizontalEdge horizontalEdge) { horizontalEdge.Add(Metrics); }
public abstract void AddMetricsToEdge(HorizontalEdge horizontalEdge);
public void AddToEdge(HorizontalEdge horizontalEdge) { TopEdge topEdge = horizontalEdge as TopEdge; BottomEdge bottomEdge = horizontalEdge as BottomEdge; #region _stemMetrics if(_stemMetrics != null) { if(topEdge != null) topEdge.Add(_stemMetrics); else bottomEdge.Add(_stemMetrics); } #endregion #region _flagsBlockMetrics if(_flagsBlockMetrics != null) { if(topEdge != null) topEdge.Add(_flagsBlockMetrics); else bottomEdge.Add(_flagsBlockMetrics); } #endregion #region _topDownHeadsMetrics if(_headsMetricsTopDown != null) { if(topEdge != null) { foreach(HeadMetrics headMetric in _headsMetricsTopDown) { topEdge.Add(headMetric); } } else { foreach(HeadMetrics headMetric in _headsMetricsTopDown) { bottomEdge.Add(headMetric); } } } #endregion #region _accidentalsMetrics if(_topDownAccidentalsMetrics != null) { if(topEdge != null) { foreach(AccidentalMetrics accidentalMetric in _topDownAccidentalsMetrics) { topEdge.Add(accidentalMetric); } } else { foreach(AccidentalMetrics accidentalMetric in _topDownAccidentalsMetrics) { bottomEdge.Add(accidentalMetric); } } } #endregion #region ledgerlineBlocksMetrics if(topEdge != null && _upperLedgerlineBlockMetrics != null) { topEdge.Add(_upperLedgerlineBlockMetrics); } if(bottomEdge != null && _lowerLedgerlineBlockMetrics != null) { bottomEdge.Add(_lowerLedgerlineBlockMetrics); } #endregion #region _cautionaryBracketsMetrics if(_cautionaryBracketsMetrics != null) { if(topEdge != null) { foreach(CautionaryBracketMetrics cautionaryBracketMetrics in _cautionaryBracketsMetrics) { topEdge.Add(cautionaryBracketMetrics); } } else { foreach(CautionaryBracketMetrics cautionaryBracketMetrics in _cautionaryBracketsMetrics) { bottomEdge.Add(cautionaryBracketMetrics); } } } #endregion #region _ornamentMetrics if(_ornamentMetrics != null) { if(topEdge != null) topEdge.Add(_ornamentMetrics); else bottomEdge.Add(_ornamentMetrics); } #endregion #region _lyricMetrics if(_lyricMetrics != null) { if(topEdge != null) topEdge.Add(_lyricMetrics); else bottomEdge.Add(_lyricMetrics); } #endregion #region _dynamicMetrics if(_dynamicMetrics != null) { if(topEdge != null) topEdge.Add(_dynamicMetrics); else bottomEdge.Add(_dynamicMetrics); } #endregion #region BeamBlock if(BeamBlock != null) { List<HLine> hLines = this.BeamBlock.OuterEdge(); if(topEdge != null) { foreach(HLine hLine in hLines) { topEdge.Add(hLine); } } else { foreach(HLine hLine in hLines) { bottomEdge.Add(hLine); } } } #endregion #region NoteheadExtendersMetricsBefore if(NoteheadExtendersMetricsBefore != null) { if(topEdge != null) { foreach(NoteheadExtenderMetrics nemb in NoteheadExtendersMetricsBefore) { topEdge.Add(nemb); } } else { foreach(NoteheadExtenderMetrics nemb in NoteheadExtendersMetricsBefore) { bottomEdge.Add(nemb); } } } #endregion #region NoteheadExtendersMetrics if(NoteheadExtendersMetrics != null) { if(topEdge != null) { foreach(NoteheadExtenderMetrics nem in NoteheadExtendersMetrics) { topEdge.Add(nem); } } else { foreach(NoteheadExtenderMetrics nem in NoteheadExtendersMetrics) { bottomEdge.Add(nem); } } } #endregion }
public override void AddMetricsToEdge(HorizontalEdge horizontalEdge) { // nothing to do here since there are no drawObjects M.Assert(DrawObjects.Count == 0); }
public override void AddMetricsToEdge(HorizontalEdge horizontalEdge) { AddBasicMetricsToEdge(horizontalEdge); }