Class FormplanView

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
eu.bandm.music.applications.myKdF.FormplanView
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class FormplanView extends JComponent
Widget which shows the plan of the movement, with a cursor moving synchronuously with playing and positioning. Only one instance at a time per application. The input data is a Formplan_fuge, but this can be rendered in very different modes (= Formplan_fuge.ThMode), which assign the possible visual appearances (white fill, gray fill, thick border, etc.) to the different aspects of the theme entries (subjet I, II, or III; inverse or retrograde; dux or comes; etc.)
See Also:
  • Field Details

    • printer_th

      @Opt @Opt Print_Plan_3d printer_th
      Renderer for the theme entries in the display.
    • printer_kp

      @Opt @Opt Print_Plan_3d printer_kp
      Renderer for the counter-point entries in the display.
    • pixelPerWhole

      float pixelPerWhole
      Maps metric rational time to device coordinates (=pixels).
    • pixelPerMsec

      float pixelPerMsec
      Maps physical player time to device coordinates (=pixels).
    • effectiveWidth

      int effectiveWidth
      Width of the drawable area, corresponds to the total score time.
    • cursorColor

      protected Color cursorColor
      Parameter, can be overwritten by subclass.
    • auxLineColor

      protected Color auxLineColor
      Parameter, can be overwritten by subclass.
    • leftMargin

      protected int leftMargin
      Parameter, can be overwritten by subclass.
    • rightMargin

      protected int rightMargin
      Parameter, can be overwritten by subclass.
    • currentPos

      int currentPos
      Position (in device coordinates) where the cursor is currently vsisible.
    • nextPos

      int nextPos
      Position (in device coordinates) where the cursor shall be visible according to the currently played time point.
    • planImage

      Image planImage
      Intermediate buffer to draw formplan and cursor. Will be transferred to the visible output by the standard callback "paint()" method.
    • showAll

      boolean showAll
      Flag whether the next invokation of paint() must redraw the whole formplan.
  • Constructor Details

    • FormplanView

      FormplanView(JSequencerPanel sequencerPanel)
      Only constructor.
      Parameters:
      sequencerPanel - with which the displayed cursos will be synchronized.
  • Method Details

    • adopt

      public void adopt(Formplan_fuge plan, Formplan_fuge.ThMode thMode, float msec_per_whole)
      Called whenever the movement selection, the theme representation, or the widget's size changes.
    • setPosition

      public void setPosition(int msec)
      Update the visible realtime cursor and trigger a repaint iff nessecary.
    • paint

      public void paint(Graphics gr)
      Callback as defined by the Swing framework to paint the component. Draws either the complete plan, or only the cursor.
      Overrides:
      paint in class JComponent