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
ConstructorDescriptionDefault constructor, used to set up the tool and detect actions, then trigger image insertion. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getName()
Return the name of this tool.javafx.scene.Node
Return 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, wait
Methods 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: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
-
enabledFor
Description copied from interface:PageEventHandler
Called when the handler is set to receive events from the given page.- Specified by:
enabledFor
in interfacePageEventHandler
-
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
-
getName
Description copied from interface:Tool
Return the name of this tool.
-