Class PositionViewer

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants

public class PositionViewer extends JLabel implements PropertyChangeListener
Shows the position in bar/beat.
See Also:
  • Constructor Details

    • PositionViewer

      public PositionViewer()
  • Method Details

    • setModel

      public void setModel(Song song, Position pos)
    • getPositionModel

      public Position getPositionModel()
    • getSongModel

      public Song getSongModel()
    • getPlayBackground

      public Color getPlayBackground()
      Returns:
      the playBackground
    • setPlayBackground

      public void setPlayBackground(Color playBackground)
      Parameters:
      playBackground - the playBackground to set
    • isTimeShown

      public boolean isTimeShown()
      Check if time (minute:seconds) is shown by the viewer.
      Returns:
      true by default
    • setTimeShown

      public void setTimeShown(boolean timeShown)
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener