com.softsynth.jmsl.score
Class ScorePainter
java.lang.Object
com.softsynth.jmsl.score.ScorePainter
public class ScorePainter
- extends java.lang.Object
Tell all score components to draw themselves. Assumes ScoreLayoutManager has already made a pass
through a series of measures, ans set drawingAnchors for each.
JMSL Notation Project
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky
Field Summary |
static java.lang.String |
copyright
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
ScorePainter
public ScorePainter(Score parent)
setBGColor
public void setBGColor(java.awt.Color c)
- Set the background color of the rendered notation. Set this to null to get default drawing
surface color. Scorepainter uses Color.white by default
getTextFont
public java.awt.Font getTextFont()
getTimeSigFont
public java.awt.Font getTimeSigFont()
render
public void render(java.awt.Graphics graphicsContext,
double playTime,
boolean scheduled)
- Render to specified graphicsContext, optionally scheduled for the future to synch page turns
with JMSL.clock
getHeight
public int getHeight()
- Returns:
getNumMeasures
public int getNumMeasures()
- Returns:
getStartMeasure
public int getStartMeasure()
- Returns:
getWidth
public int getWidth()
- Returns:
setHeight
public void setHeight(int i)
- Parameters:
i
-
setNumMeasures
public void setNumMeasures(int i)
- Parameters:
i
-
setStartMeasure
public void setStartMeasure(int i)
- Parameters:
i
-
setWidth
public void setWidth(int i)
- Parameters:
i
-
scheduleRenderAt
public void scheduleRenderAt(double playTime)
- Parameters:
playTime
-
getScore
public Score getScore()