Class FPanelMusic.FPanelMusicButton

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
FPanelMusic

private class FPanelMusic.FPanelMusicButton extends FPanelRoundButtonsContainer
A music buton panel with all the possible music action. :
Play/Pause, next, last
Author:
Hydrolien
  • Constructor Details

    • FPanelMusicButton

      public FPanelMusicButton()
      Main constructor.
  • Method Details

    • addButtons

      protected void addButtons()
      Add all button to the FPanel.
      Overrides:
      addButtons in class FPanelRoundButtonsContainer
    • getArrowImage

      public BufferedImage getArrowImage(boolean turnRigth)
      Return a next or last image.
      Parameters:
      turnRigth - if trun arrow is turn to the rigth
    • getPauseImage

      public BufferedImage getPauseImage()
      Return a pause image.
    • updateColorButtonPause

      public void updateColorButtonPause()
      Update the color of the button pause.
      This is call when music have changed or being pause/resume.
    • updateSize

      protected void updateSize()
      Update panel size depending of buttons, radius, margin & music description label.
      Overrides:
      updateSize in class FPanelRoundButtonsContainer