java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.jackmeng.halcyoninae.cosmos.components.minimizeplayer.MiniPlayer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible, RootPaneContainer, WindowConstants

public class MiniPlayer extends JFrame implements Runnable
This class represents a frame that holds a minimized player.

What is a minimized player? A minimized player is an indirect way to display what is being played, in a very compact form factor. This form factor, however, is not used to directly control the audio instead is maybe to display what is being played without having the main player interface being shown.

This class specifically represents the window part of the miniplayer.

Since:
3.2
Author:
Jack Meng
See Also:
  • Field Details

    • pX

      private int pX
    • pY

      private int pY
    • listener

      private transient MiniPlayerListener listener
  • Constructor Details

    • MiniPlayer

      public MiniPlayer()
  • Method Details

    • setMiniPlayerListener

      public void setMiniPlayerListener(MiniPlayerListener listener)
      Only one listener is allowed per miniplayer.
      Parameters:
      listener - A Listener implementation or anonymous class.
    • pounceListener

      public void pounceListener()
      Calls for the listener that the window is closing.
    • run

      public void run()
      Specified by:
      run in interface Runnable