Package gui.tool
Class AudioTool
java.lang.Object
gui.tool.AudioTool
- All Implemented Interfaces:
PageEventHandler,Tool
- Direct Known Subclasses:
VideoTool
GUI for adding or modifying audio on the page
-
Nested Class Summary
Nested classes/interfaces inherited from interface gui.page.PageEventHandler
PageEventHandler.HandlerMethod<T extends javafx.event.Event> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidenabledFor(Page page) Called when the handler is set to receive events from the given page.javafx.scene.NodeReturn the "graphic" to show in the toolbar for this tool.Get the handler methods to be added to a page through which events will be received.getName()Return the name of this tool.getPage()gui.tool.AudioSettingsReturn the GUI element which configures the settings for this tool.voidProvides functionality to the UI elements as defined in settingsvoidresetInterface(String text) voidvoidsetSelectedAudio(javafx.scene.input.MouseEvent e) Defines how GUIAudio on the page can either be selected or de-selectedvoidsetSelectedPlayer(GUIAudio selectedPlayer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gui.page.PageEventHandler
disabledFor
-
Field Details
-
page
-
-
Constructor Details
-
AudioTool
-
-
Method Details
-
setSelectedAudio
public void setSelectedAudio(javafx.scene.input.MouseEvent e) Defines how GUIAudio on the page can either be selected or de-selectedIf 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
-
enabledFor
Description copied from interface:PageEventHandlerCalled when the handler is set to receive events from the given page.- Specified by:
enabledForin interfacePageEventHandler
-
getName
Description copied from interface:ToolReturn the name of this tool. -
getGraphic
public javafx.scene.Node getGraphic()Description copied from interface:ToolReturn the "graphic" to show in the toolbar for this tool.- Specified by:
getGraphicin interfaceTool
-
getSettingsGUI
public gui.tool.AudioSettings getSettingsGUI()Description copied from interface:ToolReturn 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:
getSettingsGUIin interfaceTool
-
setSelectedPlayer
-
initializeControls
public void initializeControls()Provides functionality to the UI elements as defined in settings -
configureAddAudio
-
getHandlerMethods
Description copied from interface:PageEventHandlerGet the handler methods to be added to a page through which events will be received.- Specified by:
getHandlerMethodsin interfacePageEventHandler
-
getSelectedPlayer
-
getPage
-