Package gui.tool

Class ImageTool

java.lang.Object
gui.tool.ImageTool
All Implemented Interfaces:
PageEventHandler, Tool

public class ImageTool extends Object implements Tool
Tool for the toolbar to insert images onto the page. Interfaces with MediaImage, ImageModifier and GUIImage to do this.
  • 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 interface Tool
    • enabledFor

      public void enabledFor(Page page)
      Description copied from interface: PageEventHandler
      Called when the handler is set to receive events from the given page.
      Specified by:
      enabledFor in interface PageEventHandler
    • 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 interface Tool
    • getName

      public String getName()
      Description copied from interface: Tool
      Return the name of this tool.
      Specified by:
      getName in interface Tool