|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.score.justify.Justifier
public class Justifier
Justification of Justifiables, using two pass algorithm originally published in
D. Blostein and L. Haken, "Justification of Printed Music," Communications of the ACM,
Vol. 34, No. 3, March 1991, pp. 88-99.
Constructor Summary | |
---|---|
Justifier(java.util.Vector justifiables,
double width)
|
Method Summary | |
---|---|
static double |
calcDurationalSpacing(double duration)
Calculate a non-linear spacing based on duration. |
static double |
calcDurationalSpacing(double spacingBase,
double duration)
0 lt base lte 1.0 |
static double |
getDurationalSpacingBase()
|
void |
justify()
|
static void |
setDurationalSpacingBase(double base)
base ranges from (0 to 1]. |
void |
shift(double xVal)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Justifier(java.util.Vector justifiables, double width)
Method Detail |
---|
public void justify()
public void shift(double xVal)
public static double calcDurationalSpacing(double spacingBase, double duration)
public static double calcDurationalSpacing(double duration)
public static void setDurationalSpacingBase(double base)
public static double getDurationalSpacingBase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |