Class NotationGraphics

java.lang.Object
org.jjazz.score.api.NotationGraphics

public class NotationGraphics extends Object
Draw score notations.
  • Field Details

  • Constructor Details

    • NotationGraphics

      public NotationGraphics()
  • Method Details

    • setSize

      public void setSize(float size)
    • getGridSize

      public float getGridSize()
    • setGraphics

      public void setGraphics(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.ScoreNote drawNote(int staffLine, int dur)
    • drawNote

      public NotationGraphics.ScoreNote drawNote(int staffLine, int dur, int dotted)
    • drawNote

      public NotationGraphics.ScoreNote drawNote(int staffLine, int dur, int dotted, int accidental)
    • 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

      public void drawNoteTie(NotationGraphics.ScoreNote note1, NotationGraphics.ScoreNote note2)
    • drawRest

      public void drawRest(int dur)
    • drawRest

      public void drawRest(int dur, int dotted)