com.softsynth.jmsl.score
Class NoteRenderer

java.lang.Object
  extended by com.softsynth.jmsl.score.NoteRenderer

public class NoteRenderer
extends java.lang.Object

A class with static methods to draw Note objects. Keeps Note thinner. JMSL Notation Project

Author:
Nick Didkovsky , copyright 2000 Nick Didkovsky

Field Summary
static java.lang.String copyright
           
static int[] dotXSeries
           
static int[] dotYSeries
           
static int[] smallDotXSeries
           
static int[] smallDotYSeries
           
 
Constructor Summary
NoteRenderer()
           
 
Method Summary
static void buildNoteheadArrays(double zoom)
          Called by ScorePainter once for a given zoom value
static void clearStaffVectors(Score score)
           
static void main(java.lang.String[] args)
           
static void render(java.awt.Graphics g, double zoom, Note note)
           
static void render(java.awt.Graphics g, double zoom, Note note, boolean oppositeSideOfStem, boolean renderTails)
           
static void renderRemainingStaffVectors(java.awt.Graphics g, double zoom)
          Some cresc, decresc, 8va, 8vb groups might be loaded up but renders were not triggered because their terminating notes are on the next page.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smallDotXSeries

public static final int[] smallDotXSeries

smallDotYSeries

public static final int[] smallDotYSeries

dotXSeries

public static final int[] dotXSeries

dotYSeries

public static final int[] dotYSeries

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values
Constructor Detail

NoteRenderer

public NoteRenderer()
Method Detail

clearStaffVectors

public static void clearStaffVectors(Score score)

render

public static void render(java.awt.Graphics g,
                          double zoom,
                          Note note)

render

public static void render(java.awt.Graphics g,
                          double zoom,
                          Note note,
                          boolean oppositeSideOfStem,
                          boolean renderTails)

renderRemainingStaffVectors

public static void renderRemainingStaffVectors(java.awt.Graphics g,
                                               double zoom)
Some cresc, decresc, 8va, 8vb groups might be loaded up but renders were not triggered because their terminating notes are on the next page. This method runs through all of them and renders any that are not empty


buildNoteheadArrays

public static void buildNoteheadArrays(double zoom)
Called by ScorePainter once for a given zoom value


main

public static void main(java.lang.String[] args)