com.frinika.notation
Class NotationGraphics
java.lang.Object
com.frinika.notation.NotationGraphics
public class NotationGraphics
- extends java.lang.Object
Method Summary |
void |
absolute(float x)
|
void |
absoluteLine(float y)
|
void |
absoluteX(float x)
|
void |
absoluteY(float y)
|
void |
drawBarLine()
|
void |
drawBarLine(int type)
|
void |
drawClef(int clef)
|
void |
drawClef(int clef,
int line)
|
void |
drawDottedBarLine()
|
void |
drawDoubleBarLine()
|
float |
drawFlatKeySignature(int... notes)
|
float |
drawKeySignature(int[] notes,
int accidental)
|
float |
drawKeySignature(int[] notes,
int[] accidentals)
|
NotationGraphics.Note |
drawNote(int note,
int dur)
|
NotationGraphics.Note |
drawNote(int note,
int dur,
int dotted)
|
NotationGraphics.Note |
drawNote(int note,
int dur,
int dotted,
int accidental)
|
NotationGraphics.Note |
drawNote(int note,
int dur,
int dotted,
int accidental,
int mark)
|
NotationGraphics.Note |
drawNote(int note,
int dur,
int dotted,
int accidental,
int mark,
int linedir)
|
NotationGraphics.Note |
drawNote(NotationGraphics.Note n)
|
void |
drawNoteTie(NotationGraphics.Note note1,
NotationGraphics.Note 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 |
endNoteGroup()
|
float |
getCurrentCol()
|
float |
getCurrentLine()
|
float |
getCurrentX()
|
float |
getCurrentY()
|
float |
getGridSize()
|
void |
relative(float x)
|
void |
relativeLine(float y)
|
void |
relativeX(float x)
|
void |
relativeY(float y)
|
void |
setGraphics(java.awt.Graphics2D g)
|
void |
setSize(float size)
|
void |
setStaffLineCount(int count)
|
void |
startNoteGroup()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLEF_F
public static final int CLEF_F
- See Also:
- Constant Field Values
CLEF_C
public static final int CLEF_C
- See Also:
- Constant Field Values
CLEF_G
public static final int CLEF_G
- See Also:
- Constant Field Values
CLEF_NEUTRAL
public static final int CLEF_NEUTRAL
- See Also:
- Constant Field Values
CLEF_TAB
public static final int CLEF_TAB
- See Also:
- Constant Field Values
ACCIDENTAL_NATURAL
public static final int ACCIDENTAL_NATURAL
- See Also:
- Constant Field Values
ACCIDENTAL_DOUBLE_SHARP
public static final int ACCIDENTAL_DOUBLE_SHARP
- See Also:
- Constant Field Values
ACCIDENTAL_SHARP_AND_A_HALF
public static final int ACCIDENTAL_SHARP_AND_A_HALF
- See Also:
- Constant Field Values
ACCIDENTAL_SHARP
public static final int ACCIDENTAL_SHARP
- See Also:
- Constant Field Values
ACCIDENTAL_DEMISHARP
public static final int ACCIDENTAL_DEMISHARP
- See Also:
- Constant Field Values
ACCIDENTAL_DEMIFLAT
public static final int ACCIDENTAL_DEMIFLAT
- See Also:
- Constant Field Values
ACCIDENTAL_FLAT
public static final int ACCIDENTAL_FLAT
- See Also:
- Constant Field Values
ACCIDENTAL_FLAT_AND_A_HALF
public static final int ACCIDENTAL_FLAT_AND_A_HALF
- See Also:
- Constant Field Values
ACCIDENTAL_DOUBLE_FLAT
public static final int ACCIDENTAL_DOUBLE_FLAT
- See Also:
- Constant Field Values
ARTICULATION_MARK_STACCATO
public static final int ARTICULATION_MARK_STACCATO
- See Also:
- Constant Field Values
ARTICULATION_MARK_ACCENT
public static final int ARTICULATION_MARK_ACCENT
- See Also:
- Constant Field Values
ARTICULATION_MARK_STOPPED_NOTE
public static final int ARTICULATION_MARK_STOPPED_NOTE
- See Also:
- Constant Field Values
ARTICULATION_MARK_OPEN_NOTE
public static final int ARTICULATION_MARK_OPEN_NOTE
- See Also:
- Constant Field Values
ARTICULATION_MARK_TENUTO
public static final int ARTICULATION_MARK_TENUTO
- See Also:
- Constant Field Values
ARTICULATION_MARK_FERMATA
public static final int ARTICULATION_MARK_FERMATA
- See Also:
- Constant Field Values
ARTICULATION_MARK_UP_BOW
public static final int ARTICULATION_MARK_UP_BOW
- See Also:
- Constant Field Values
ARTICULATION_MARK_DOWN_BOW
public static final int ARTICULATION_MARK_DOWN_BOW
- See Also:
- Constant Field Values
ORNAMENT_MARK_TRILL
public static final int ORNAMENT_MARK_TRILL
- See Also:
- Constant Field Values
ORNAMENT_MARK_MODRENT
public static final int ORNAMENT_MARK_MODRENT
- See Also:
- Constant Field Values
ORNAMENT_MARK_TURN
public static final int ORNAMENT_MARK_TURN
- See Also:
- Constant Field Values
FONT_EMMENTALER
public static final java.awt.Font FONT_EMMENTALER
NotationGraphics
public NotationGraphics()
setSize
public void setSize(float size)
getGridSize
public float getGridSize()
setGraphics
public void setGraphics(java.awt.Graphics2D g)
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
public NotationGraphics.Note drawNote(int note,
int dur)
drawNote
public NotationGraphics.Note drawNote(int note,
int dur,
int dotted)
drawNote
public NotationGraphics.Note drawNote(int note,
int dur,
int dotted,
int accidental)
drawNote
public NotationGraphics.Note drawNote(int note,
int dur,
int dotted,
int accidental,
int mark)
drawNote
public NotationGraphics.Note drawNote(int note,
int dur,
int dotted,
int accidental,
int mark,
int linedir)
drawNote
public NotationGraphics.Note drawNote(NotationGraphics.Note n)
startNoteGroup
public void startNoteGroup()
endNoteGroup
public void endNoteGroup()
drawNoteTie
public void drawNoteTie(NotationGraphics.Note note1,
NotationGraphics.Note note2)
drawRest
public void drawRest(int dur)
drawRest
public void drawRest(int dur,
int dotted)