Package gui.tool
Class MediaTool
java.lang.Object
gui.tool.MediaTool
- All Implemented Interfaces:
PageEventHandler,Tool
The Media tool allows selecting multiple media and modifying the properties
common to all media types.
The properties which can be modified are:
- Position
- Rotation
- Name
- Z-Index
The tool also allows the deletion of media.
Media can be selected by clicking, or by clicking and dragging a box surrounding the media to select.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gui.page.PageEventHandler
PageEventHandler.HandlerMethod<T extends javafx.event.Event> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddisabledFor(Page page) Called when the handler is no longer set to receive events for the given page.voidenabledFor(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.javafx.scene.NodeReturn the GUI element which configures the settings for this tool.voidmoveSelectedMedia(javafx.geometry.Point2D displacement) voidselectMedia(GUIMedia<?> media) voidunSelectMedia(GUIMedia<?> media)
-
Constructor Details
-
MediaTool
public MediaTool()
-
-
Method Details
-
enabledFor
Description copied from interface:PageEventHandlerCalled when the handler is set to receive events from the given page.- Specified by:
enabledForin interfacePageEventHandler
-
disabledFor
Description copied from interface:PageEventHandlerCalled when the handler is no longer set to receive events for the given page.Implementors should get rid of any references to the given page when this method is called.
- Specified by:
disabledForin interfacePageEventHandler
-
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
-
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 javafx.scene.Node 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
-
selectMedia
-
unSelectMedia
-
clearSelection
public void clearSelection() -
moveSelectedMedia
public void moveSelectedMedia(javafx.geometry.Point2D displacement)
-