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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
enabledFor
(Page page) Called when the handler is set to receive events from the given page.javafx.scene.Node
Return 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.AudioSettings
Return the GUI element which configures the settings for this tool.void
Provides functionality to the UI elements as defined in settingsvoid
resetInterface
(String text) void
void
setSelectedAudio
(javafx.scene.input.MouseEvent e) Defines how GUIAudio on the page can either be selected or de-selectedvoid
setSelectedPlayer
(GUIAudio selectedPlayer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PageEventHandler
Called when the handler is set to receive events from the given page.- Specified by:
enabledFor
in interfacePageEventHandler
-
getName
Description copied from interface:Tool
Return the name of this 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 interfaceTool
-
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 interfaceTool
-
setSelectedPlayer
-
initializeControls
public void initializeControls()Provides functionality to the UI elements as defined in settings -
configureAddAudio
-
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 interfacePageEventHandler
-
getSelectedPlayer
-
getPage
-