ProtectedactiveProtectedactiveProtectedactiveProtectedcurrentProtectedglobalProtectedgraphicalProtectedleadProtectedmeasureProtectedmeasureProtectedmusicProtectednumberProtectedrulesProtectedvisibleProtectedadaptIf a line repetition is ending and a new line repetition is starting at the end of the system, the double repetition line has to be split into two: one at the currently ending system and one at the next system. (this should be refactored at some point to not use a combined end/start line but always separated lines)
ProtectedaddCalculate the width needed for Instructions (Key, Clef, Rhythm, Repetition) for the measure.
ProtectedaddCalculates the width needed for Instructions (Clef, Repetition) for the measure.
ProtectedaddProtectedAddProtectedaddProtectedaddProtectedaddCalculate the [StaffLine] needed for a [[MusicSystem]].
ProtectedaddAdd all current vertical Measures to currentSystem.
ProtectedaddProtectedcalculateCalculates the relative Positions of all MusicSystems.
calculates the y positions of the staff lines within a system and furthermore the y positions of the systems themselves.
ProtectedcalculateXScalingCalculate the X ScalingFactor in order to strech the whole System.
ProtectedcheckCheck if an extra Instruction [[Measure]] is needed.
ProtectedcreateCreate a new [[GraphicalMusicPage]] (for now only one long page is used per music sheet, as we scroll down and have no page flips)
ProtecteddecreaseIf the last [[MusicSystem]] doesn't need stretching, then this method decreases the System's Width, the [[StaffLine]]'s Width and the 5 [[StaffLine]]s length.
ProtectedfinalizeWhen the actual source measure doesn't fit any more, this method finalizes the current system and opens up a new empty system, where the actual measure will be added in the next iteration.
ProtectedfinalizeProtectedgetGet the width the system should have for a given page width.
ProtectedgetReturn the width of the corresponding [[SystemLine]] and sets the corresponding [[SystemLineEnum]].
ProtectedgetProtectedgetReturn the width of the corresponding [[SystemLine]] and set the corresponding [[SystemLineEnum]].
ProtectedgetProtectedinitializeInitialize the active Instructions from the first [[SourceMeasure]] of first [[SourceMusicPart]].
ProtectedinitInitialize a new [[MusicSystem]].
ProtectedlayoutProtectednextCheck if a [[Repetition]] starts at the next [[Measure]].
ProtectednextCheck if a [[Repetition]] starts at the next [[Measure]].
ProtectednextCheck if the next [[Measure]] has a [[KeyInstruction]] change.
ProtectedoptimizeThis method checks the distances between any two consecutive StaffLines of a System and if needed, shifts the lower one down.
ProtectedpreviousProtectedsetSet the Width of the staff-Measures of one source measure.
ProtectedstretchStretch the whole System so that no white space is left at the end.
ProtectedthisCheck if at this [[Measure]] starts a [[Repetition]].
ProtectedthisCheck if this [[Measure]] is a [[Repetition]] ending.
ProtectedthisCheck if this [[Measure]] is a [[Repetition]] ending.
ProtectedtransposeProtectedupdateTrack down and update the active ClefInstruction in Measure's StaffEntries. This has to be done after the measure is added to a system (otherwise already the check if the measure fits to the system would update the active clefs..)
ProtectedupdateThis method updates the System's StaffLine's RelativePosition (starting from the given index).
Does the mapping from the currently visible staves to the global staff-list of the music sheet.