Class MassDeleteTool

java.lang.Object
dk.gtz.graphedit.tool.AbstractBaseTool
dk.gtz.graphedit.tool.MassDeleteTool
All Implemented Interfaces:
ITool

public class MassDeleteTool extends AbstractBaseTool
Tool to delete the currently selected elements. Use the 'Del' or Backspace key to delete selected elements.
  • Constructor Details

    • MassDeleteTool

      public MassDeleteTool()
      Constructs a new mass delete tool instance.
  • Method Details

    • getGraphic

      public javafx.scene.Node getGraphic()
      Description copied from interface: ITool
      Get the graphical representation for the tool selection button. Typically just a FontIcon, but can be anything
      Returns:
      a javafx node that will be displayed inside the tool selector button
    • getHelpDescription

      public String getHelpDescription()
      Description copied from interface: ITool
      Get a multiline string that describe the tool and how to use it
      Returns:
      a (possibly) multiline string
    • getTooltip

      public Optional<String> getTooltip()
      Description copied from interface: ITool
      Get a multiline tooltip string that briefly describes this tool
      Specified by:
      getTooltip in interface ITool
      Overrides:
      getTooltip in class AbstractBaseTool
      Returns:
      a (possibly) multiline string
    • onKeyEvent

      public void onKeyEvent(ViewportKeyEvent e)
      Description copied from interface: ITool
      Event handler for the case where the model editor viewport has been interacted with with the keyboard
      Specified by:
      onKeyEvent in interface ITool
      Overrides:
      onKeyEvent in class AbstractBaseTool
      Parameters:
      e - The event that happened
    • deleteSelectedElements

      public void deleteSelectedElements(ViewportKeyEvent event)
      Delete the currently selected elements.
      Parameters:
      event - The key event.