Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • SimpleGuiDemo.java
    • This class contains the main method and is the JavaFX Application subclass
    • Zong! is initialized (see below)
  • Content.java

    • This class holds the current score document (ScoreDoc), its Layout and a layouter for the playback cursor (PlaybackLayouter)
    • The PlaybackLayouter modifies the current layout so that the current playback position is shown
    • Registering this class as a PlaybackListener, it gets notified about the playback progress and can update the layout accordingly
  • Playback.java
  • MainWindow.fxml
    • The FXML code of the main window
  • MainWindow.java
    • The Java controller of the main window
    • The renderLayout method uses the AwtBitmapPageRenderer class to create a displayable image of the document layout

Initialize Zong!

At the beginning of the application, Zong! has to be initialized. In this demo app, this is done at the very beginning in the main method.

...