|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.score.ScoreLayoutManager
public class ScoreLayoutManager
Manage layout of measures on a rectangular drawing surface
JMSL Notation Project
Field Summary | |
---|---|
static double |
BOTTOM_MARGIN
|
static java.lang.String |
copyright
|
static double |
LEFT_MARGIN
|
static double |
RIGHT_MARGIN
|
static double |
TOP_MARGIN
|
Constructor Summary | |
---|---|
ScoreLayoutManager(Score score,
int width,
int height)
|
|
ScoreLayoutManager(Score score,
int width,
int height,
int measuresPerLine)
Constructor gets passed the dimensions of the drawing canvas |
Method Summary | |
---|---|
void |
calcDrawableDimensions()
Call this after changing width and height so layoutMeasures reflects change |
static int |
calcNoteYPos(int staffDrawingAnchorY,
int noteLevel,
double zoom)
|
static boolean |
clefsSame(Measure m1,
Measure m2)
|
java.util.Enumeration |
elements()
|
double |
getDrawableHeight()
|
double |
getDrawableWidth()
|
int |
getHeight()
|
java.util.Vector |
getMeasures()
|
int |
getMeasuresPerLine()
|
int |
getWidth()
|
boolean |
getWrap()
|
double |
getZoom()
drawing scale, 1.0=normal size |
static boolean |
keySignaturesSame(Measure m1,
Measure m2)
|
int |
layoutMeasures(int startingMeasure)
Lay out as many measures as will fit horizintally and vertically. |
void |
setHeight(int h)
|
void |
setWidth(int w)
|
void |
setWrap(boolean f)
Set flag to try to fit more than one system on a page or not |
void |
setZoom(double z)
drawing scale, 1.0=normal size |
static boolean |
timeSigsSame(Measure m1,
Measure m2)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double LEFT_MARGIN
public static final double RIGHT_MARGIN
public static final double TOP_MARGIN
public static final double BOTTOM_MARGIN
public static final java.lang.String copyright
Constructor Detail |
---|
public ScoreLayoutManager(Score score, int width, int height)
public ScoreLayoutManager(Score score, int width, int height, int measuresPerLine)
Method Detail |
---|
public void calcDrawableDimensions()
public java.util.Enumeration elements()
public boolean getWrap()
public void setWrap(boolean f)
public java.util.Vector getMeasures()
public int getMeasuresPerLine()
public int getWidth()
public void setWidth(int w)
public void setHeight(int h)
public int getHeight()
public double getDrawableWidth()
public double getDrawableHeight()
public double getZoom()
public void setZoom(double z)
setZoom
in interface ZoomListener
public static int calcNoteYPos(int staffDrawingAnchorY, int noteLevel, double zoom)
public static boolean clefsSame(Measure m1, Measure m2)
public static boolean keySignaturesSame(Measure m1, Measure m2)
public static boolean timeSigsSame(Measure m1, Measure m2)
public int layoutMeasures(int startingMeasure)
JustificationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |