Package dk.gtz.graphedit.tool
Class MassDeleteTool
java.lang.Object
dk.gtz.graphedit.tool.AbstractBaseTool
dk.gtz.graphedit.tool.MassDeleteTool
- All Implemented Interfaces:
ITool
Tool to delete the currently selected elements.
Use the 'Del' or Backspace key to delete selected elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete the currently selected elements.javafx.scene.NodeGet the graphical representation for the tool selection button.Get a multiline string that describe the tool and how to use itGet a multiline tooltip string that briefly describes this toolvoidEvent handler for the case where the model editor viewport has been interacted with with the keyboardMethods inherited from class dk.gtz.graphedit.tool.AbstractBaseTool
onEdgeMouseEvent, onVertexMouseEvent, onViewportMouseEvent
-
Constructor Details
-
MassDeleteTool
public MassDeleteTool()Constructs a new mass delete tool instance.
-
-
Method Details
-
getGraphic
public javafx.scene.Node getGraphic()Description copied from interface:IToolGet the graphical representation for the tool selection button. Typically just aFontIcon, but can be anything- Returns:
- a javafx node that will be displayed inside the tool selector button
-
getHelpDescription
Description copied from interface:IToolGet a multiline string that describe the tool and how to use it- Returns:
- a (possibly) multiline string
-
getTooltip
Description copied from interface:IToolGet a multiline tooltip string that briefly describes this tool- Specified by:
getTooltipin interfaceITool- Overrides:
getTooltipin classAbstractBaseTool- Returns:
- a (possibly) multiline string
-
onKeyEvent
Description copied from interface:IToolEvent handler for the case where the model editor viewport has been interacted with with the keyboard- Specified by:
onKeyEventin interfaceITool- Overrides:
onKeyEventin classAbstractBaseTool- Parameters:
e- The event that happened
-
deleteSelectedElements
Delete the currently selected elements.- Parameters:
event- The key event.
-