public class Pager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Staff> |
allStaffs
Contains only those which pass through the Staff Filter of this Pager.
|
(package private) int |
firstPageNum |
(package private) java.util.Map<Renderer.NoteSystem,java.lang.Float> |
heights
The overall height of each NoteSystem, counting filtered staves only.
|
(package private) java.util.Map<Renderer.NoteSystem,java.lang.Integer> |
onPage
Maps each NoteSystem to the vertical number on its page, starting with "0", i.e.
|
(package private) Parameters |
ownParams |
(package private) java.util.Map<Renderer.NoteSystem,java.lang.Integer> |
pageNums
Maps one or more NoteSystems to the same page number.
|
(package private) Renderer |
renderer |
(package private) java.util.Map<Renderer.RunningPrefix,java.lang.Float> |
yStart
lower y-coordinate, ie.
|
Constructor and Description |
---|
Pager(Renderer renderer,
Parameters ownParams,
int firstPageNum)
Argument "renderer" contains ALL data, including score, msg, parameters, etc.
|
Modifier and Type | Method and Description |
---|---|
void |
execute() |
(package private) void |
shipout(Renderer.NoteSystem first,
float allocated,
Renderer.NoteSystem follower,
int pageNum) |
final Renderer renderer
final Parameters ownParams
final int firstPageNum
java.util.Map<Renderer.RunningPrefix,java.lang.Float> yStart
java.util.Map<Renderer.NoteSystem,java.lang.Integer> pageNums
java.util.Map<Renderer.NoteSystem,java.lang.Integer> onPage
java.util.List<Staff> allStaffs
java.util.Map<Renderer.NoteSystem,java.lang.Float> heights
public Pager(Renderer renderer, Parameters ownParams, int firstPageNum)
^ | | | +--------> (0,0)
firstPageNum
- "nominal number" of the very first physical page.
All subsequent pages follow with ascending numbers, and all page filters etc.
work on this "nominal" numbers.public void execute()
void shipout(Renderer.NoteSystem first, float allocated, Renderer.NoteSystem follower, int pageNum)
first
- the next NoteSystem to be printed.allocated
- the HEIGHT of all note systems on the new pagefollower
- the first system NOT on this page, but on the nextpageNum
- "nominal" number of this page