Package gui.tool
Class ImageTool
java.lang.Object
gui.tool.ImageTool
- All Implemented Interfaces:
PageEventHandler,Tool
Tool for the toolbar to insert images onto the page. Interfaces with MediaImage, ImageModifier and GUIImage to do this.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gui.page.PageEventHandler
PageEventHandler.HandlerMethod<T extends javafx.event.Event> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, used to set up the tool and detect actions, then trigger image insertion. -
Method Summary
Modifier and TypeMethodDescriptionvoidenabledFor(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.getName()Return the name of this tool.javafx.scene.NodeReturn the GUI element which configures the settings for this tool.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, getHandlerMethods
-
Constructor Details
-
ImageTool
public ImageTool()Default constructor, used to set up the tool and detect actions, then trigger image insertion.
-
-
Method Details
-
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
-
enabledFor
Description copied from interface:PageEventHandlerCalled when the handler is set to receive events from the given page.- Specified by:
enabledForin interfacePageEventHandler
-
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
-
getName
Description copied from interface:ToolReturn the name of this tool.
-