Interface RpViewerRenderer

All Known Subinterfaces:
RpViewerEditableRenderer
All Known Implementing Classes:
MeterRpRenderer, StringRpRenderer

public interface RpViewerRenderer
A renderer for a RpViewer.

  • Method Details

    • setRpViewer

      void setRpViewer(RpViewer rpv)
      Set the target RpViewer for which we perform the rendering.
      Parameters:
      rpv -
    • getRpViewer

      RpViewer getRpViewer()
      The target RpViewer for which we perform the rendering.
      Returns:
    • getSongPart

      SongPart getSongPart()
      The SongPart context.
      Returns:
      Might be null.
    • getSong

      Song getSong()
      The Song context.
      Returns:
      Might be null.
    • getPreferredSize

      Dimension getPreferredSize()
      The preferred size of this Renderer.
      Returns:
    • paintComponent

      void paintComponent(Graphics g)
      Render the RpViewer.
      Parameters:
      g -
    • addChangeListener

      void addChangeListener(ChangeListener l)
      A change event is fired when this RpRenderer configuration has changed for some reason (e.g. user has changed some settings).

      A change event means the preferredSize() and/or the paintComponent() behavior might have changed.

      Parameters:
      l -
    • removeChangeListener

      void removeChangeListener(ChangeListener l)