Class DeletionTool
java.lang.Object
group24.escaperoom.ui.editorTools.EditorTool
group24.escaperoom.ui.editorTools.DeletionTool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a deletion operation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Called when the user presses Escape while this is the active toolgetName()getType()voidhandleDrag(float x, float y) booleanWhether this tool is currently "deleting" That is, the tool has been used to delete a single item and the user has not yet lifted the mouse buttonvoidselect()Called when this tool is selectedMethods inherited from class group24.escaperoom.ui.editorTools.EditorTool
getEditor
-
Constructor Details
-
DeletionTool
-
-
Method Details
-
isDeleting
public boolean isDeleting()Whether this tool is currently "deleting" That is, the tool has been used to delete a single item and the user has not yet lifted the mouse button -
handleDrag
public void handleDrag(float x, float y) -
select
public void select()Description copied from class:EditorToolCalled when this tool is selected- Specified by:
selectin classEditorTool
-
cancel
public void cancel()Description copied from class:EditorToolCalled when the user presses Escape while this is the active tool- Specified by:
cancelin classEditorTool
-
getButtonStyle
- Overrides:
getButtonStylein classEditorTool
-
getType
- Specified by:
getTypein classEditorTool- Returns:
- the
ToolManager.ToolType
-
getName
- Specified by:
getNamein classEditorTool
-