public class Renderer extends Object
Score NoteSystem NoteSystem Measure Measure Measure tps, tp2abstractpos, tnum2finalPos,etc. Staff=Segment RPrefix first,last first,last RPrefix first,last Staff=Segment RPrefix first,last first,last RPrefix first,last
Modifier and Type | Class and Description |
---|---|
class |
Renderer.Inner
cf.
|
class |
Renderer.Measure
"tp : Rational" nominal (/measure relative/logical/rhythmic/rational)
music time points, introduced by
TimedObject , by INTERNAL
BarLine , or by TERMINAL MeasureMark . |
class |
Renderer.NoteSystem
Contains all data needed for later printing.
|
static class |
Renderer.PointwiseLinear |
class |
Renderer.RunningPrefix
Store for the symbols standing at the beginning of a system, per Staff.
|
class |
Renderer.Segment |
Modifier and Type | Field and Description |
---|---|
static StaffLines |
blankLines |
protected static CheckedList<Float> |
clf_0 |
protected NoteHead |
custos_notehead |
static Extension |
emptyExtension |
Renderer.NoteSystem |
firstSystem |
Graphics2D |
graphics2D |
protected Map<MTree,Integer> |
levels |
protected MTree |
metricTree |
protected MuLiMessageReceiver<XMLDocumentIdentifier> |
msg |
protected MTreeSpec |
mt0 |
Parameters |
params |
Score |
score |
protected Map<Staff,Renderer.Segment> |
segments |
Constructor and Description |
---|
Renderer(Score score,
Parameters params,
MuLiMessageReceiver<XMLDocumentIdentifier> msg,
Graphics2D graphics2D)
ATTENTION graphics2D needed ONLY for text measurement.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
assignLevels(MTree mt,
int l) |
int |
calculateTextAdvance(String text,
int fontIndex,
Location<XMLDocumentIdentifier> loc,
int objIndex) |
void |
execute()
Calculates (a) width for all measures, (b) partitinoning of measures
to accoaladeds, and (c) heights of all staffs.
|
(package private) BigDecimal |
findNextMeasureToRender() |
Color |
resolveColor(int index,
Location<XMLDocumentIdentifier> loc,
int objIndex) |
float |
resolveSizeFactor(int logSize,
Location<XMLDocumentIdentifier> loc,
int objIndex) |
public final Score score
public final Parameters params
protected MuLiMessageReceiver<XMLDocumentIdentifier> msg
public final Graphics2D graphics2D
public Renderer.NoteSystem firstSystem
protected static final CheckedList<Float> clf_0
public static final StaffLines blankLines
protected NoteHead custos_notehead
public static final Extension emptyExtension
protected Map<Staff,Renderer.Segment> segments
protected MTreeSpec mt0
protected MTree metricTree
public Renderer(Score score, Parameters params, MuLiMessageReceiver<XMLDocumentIdentifier> msg, Graphics2D graphics2D)
void assignLevels(MTree mt, int l)
public int calculateTextAdvance(String text, int fontIndex, Location<XMLDocumentIdentifier> loc, int objIndex)
BigDecimal findNextMeasureToRender()
public Color resolveColor(int index, Location<XMLDocumentIdentifier> loc, int objIndex)
public float resolveSizeFactor(int logSize, Location<XMLDocumentIdentifier> loc, int objIndex)
public void execute()
Pager
.)