Package gui.tool

Class AudioTool

java.lang.Object
gui.tool.AudioTool
All Implemented Interfaces:
PageEventHandler, Tool
Direct Known Subclasses:
VideoTool

public class AudioTool extends Object implements Tool
GUI for adding or modifying audio on the page
  • Field Details

    • page

      protected Page page
  • Constructor Details

    • AudioTool

      public AudioTool(String type)
  • Method Details

    • setSelectedAudio

      public void setSelectedAudio(javafx.scene.input.MouseEvent e)
      Defines how GUIAudio on the page can either be selected or de-selected

      If any visual component of a GUIAudio is clicked on the page, it is classified as selected. If anything that is not an instance of GUIAudio is clicked on the page, then no GUIAudio is considered selected

      Parameters:
      e - Any form of MouseEvent detecting on the associated page
    • setInterface

      public void setInterface()
    • resetInterface

      public void resetInterface(String text)
    • enabledFor

      public void enabledFor(Page page)
      Description copied from interface: PageEventHandler
      Called when the handler is set to receive events from the given page.
      Specified by:
      enabledFor in interface PageEventHandler
    • getName

      public String getName()
      Description copied from interface: Tool
      Return the name of this tool.
      Specified by:
      getName in interface Tool
    • getGraphic

      public javafx.scene.Node getGraphic()
      Description copied from interface: Tool
      Return the "graphic" to show in the toolbar for this tool.
      Specified by:
      getGraphic in interface Tool
    • getSettingsGUI

      public gui.tool.AudioSettings getSettingsGUI()
      Description copied from interface: Tool
      Return the GUI element which configures the settings for this tool.

      The returned Node will be shown in the tool pane when this tool is selected.

      Specified by:
      getSettingsGUI in interface Tool
    • setSelectedPlayer

      public void setSelectedPlayer(GUIAudio selectedPlayer)
    • initializeControls

      public void initializeControls()
      Provides functionality to the UI elements as defined in settings
    • configureAddAudio

      protected void configureAddAudio(ToolBarController tbc)
    • getHandlerMethods

      public PageEventHandler.HandlerMethod<?>[] getHandlerMethods()
      Description copied from interface: PageEventHandler
      Get the handler methods to be added to a page through which events will be received.
      Specified by:
      getHandlerMethods in interface PageEventHandler
    • getSelectedPlayer

      public GUIAudio getSelectedPlayer()
    • getPage

      public Page getPage()