Package org.jjazz.score.api
Class NotationGraphics
java.lang.Object
org.jjazz.score.api.NotationGraphics
Draw score notations.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final Font
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
absolute
(float x) void
absoluteLine
(float y) void
absoluteX
(float x) void
absoluteY
(float y) void
void
drawBarLine
(int type) void
drawClef
(int clef) void
drawClef
(int clef, int line) void
void
float
drawFlatKeySignature
(int... notes) float
drawKeySignature
(int[] notes, int accidental) float
drawKeySignature
(int[] notes, int[] accidentals) drawNote
(int staffLine, int dur) drawNote
(int staffLine, int dur, int dotted) drawNote
(int staffLine, int dur, int dotted, int accidental) drawNote
(int staffLine, int dur, int dotted, int accidental, int mark) drawNote
(int staffLine, int dur, int dotted, int accidental, int mark, int linedir) drawNote
(NotationGraphics.ScoreNote scoreNote) void
drawNoteTie
(NotationGraphics.ScoreNote note1, NotationGraphics.ScoreNote note2) void
drawRest
(int dur) void
drawRest
(int dur, int dotted) float
drawSharpKeySignature
(int... notes) void
drawStaff
(float width) void
drawTimeSignature
(int type) void
drawTimeSignature
(int a, int b) void
float
float
float
float
float
void
relative
(float x) void
relativeLine
(float y) void
relativeX
(float x) void
relativeY
(float y) void
void
setSize
(float size) void
setStaffLineCount
(int count) void
-
Field Details
-
CLEF_F
public static final int CLEF_F- See Also:
-
CLEF_C
public static final int CLEF_C- See Also:
-
CLEF_G
public static final int CLEF_G- See Also:
-
CLEF_NEUTRAL
public static final int CLEF_NEUTRAL- See Also:
-
CLEF_TAB
public static final int CLEF_TAB- See Also:
-
ACCIDENTAL_NATURAL
public static final int ACCIDENTAL_NATURAL- See Also:
-
ACCIDENTAL_DOUBLE_SHARP
public static final int ACCIDENTAL_DOUBLE_SHARP- See Also:
-
ACCIDENTAL_SHARP_AND_A_HALF
public static final int ACCIDENTAL_SHARP_AND_A_HALF- See Also:
-
ACCIDENTAL_SHARP
public static final int ACCIDENTAL_SHARP- See Also:
-
ACCIDENTAL_DEMISHARP
public static final int ACCIDENTAL_DEMISHARP- See Also:
-
ACCIDENTAL_DEMIFLAT
public static final int ACCIDENTAL_DEMIFLAT- See Also:
-
ACCIDENTAL_FLAT
public static final int ACCIDENTAL_FLAT- See Also:
-
ACCIDENTAL_FLAT_AND_A_HALF
public static final int ACCIDENTAL_FLAT_AND_A_HALF- See Also:
-
ACCIDENTAL_DOUBLE_FLAT
public static final int ACCIDENTAL_DOUBLE_FLAT- See Also:
-
ARTICULATION_MARK_STACCATO
public static final int ARTICULATION_MARK_STACCATO- See Also:
-
ARTICULATION_MARK_ACCENT
public static final int ARTICULATION_MARK_ACCENT- See Also:
-
ARTICULATION_MARK_STOPPED_NOTE
public static final int ARTICULATION_MARK_STOPPED_NOTE- See Also:
-
ARTICULATION_MARK_OPEN_NOTE
public static final int ARTICULATION_MARK_OPEN_NOTE- See Also:
-
ARTICULATION_MARK_TENUTO
public static final int ARTICULATION_MARK_TENUTO- See Also:
-
ARTICULATION_MARK_FERMATA
public static final int ARTICULATION_MARK_FERMATA- See Also:
-
ARTICULATION_MARK_UP_BOW
public static final int ARTICULATION_MARK_UP_BOW- See Also:
-
ARTICULATION_MARK_DOWN_BOW
public static final int ARTICULATION_MARK_DOWN_BOW- See Also:
-
ORNAMENT_MARK_TRILL
public static final int ORNAMENT_MARK_TRILL- See Also:
-
ORNAMENT_MARK_MODRENT
public static final int ORNAMENT_MARK_MODRENT- See Also:
-
ORNAMENT_MARK_TURN
public static final int ORNAMENT_MARK_TURN- See Also:
-
FONT_EMMENTALER
-
-
Constructor Details
-
NotationGraphics
public NotationGraphics()
-
-
Method Details
-
setSize
public void setSize(float size) -
getGridSize
public float getGridSize() -
setGraphics
-
getCurrentX
public float getCurrentX() -
getCurrentY
public float getCurrentY() -
getCurrentCol
public float getCurrentCol() -
getCurrentLine
public float getCurrentLine() -
absoluteX
public void absoluteX(float x) -
absoluteY
public void absoluteY(float y) -
relativeX
public void relativeX(float x) -
relativeY
public void relativeY(float y) -
absolute
public void absolute(float x) -
absoluteLine
public void absoluteLine(float y) -
relative
public void relative(float x) -
relativeLine
public void relativeLine(float y) -
setStaffLineCount
public void setStaffLineCount(int count) -
drawStaff
public void drawStaff(float width) -
drawBarLine
public void drawBarLine() -
drawDottedBarLine
public void drawDottedBarLine() -
drawDoubleBarLine
public void drawDoubleBarLine() -
drawBarLine
public void drawBarLine(int type) -
drawClef
public void drawClef(int clef) -
drawClef
public void drawClef(int clef, int line) -
drawFlatKeySignature
public float drawFlatKeySignature(int... notes) -
drawSharpKeySignature
public float drawSharpKeySignature(int... notes) -
drawKeySignature
public float drawKeySignature(int[] notes, int accidental) -
drawKeySignature
public float drawKeySignature(int[] notes, int[] accidentals) -
drawTimeSignature
public void drawTimeSignature(int a, int b) -
drawTimeSignature
public void drawTimeSignature(int type) -
drawNote
-
drawNote
-
drawNote
-
drawNote
public NotationGraphics.ScoreNote drawNote(int staffLine, int dur, int dotted, int accidental, int mark) -
drawNote
public NotationGraphics.ScoreNote drawNote(int staffLine, int dur, int dotted, int accidental, int mark, int linedir) -
drawNote
-
startNoteGroup
public void startNoteGroup() -
endNoteGroup
public void endNoteGroup() -
drawNoteTie
-
drawRest
public void drawRest(int dur) -
drawRest
public void drawRest(int dur, int dotted)
-