Package dk.gtz.graphedit.tool
Class AbstractBaseTool
java.lang.Object
dk.gtz.graphedit.tool.AbstractBaseTool
- All Implemented Interfaces:
ITool
- Direct Known Subclasses:
ClipboardTool
,EdgeCreateTool
,EdgeDeleteTool
,LintInspectorTool
,MassDeleteTool
,SelectTool
,UnifiedModellingTool
,VertexCreateTool
,VertexDeleteTool
,VertexDragMoveTool
,ViewTool
Most of the default implementations for a simple
ITool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a multiline tooltip string that briefly describes this toolvoid
Event handler for the case where an edge has been interacted with with the mousevoid
Event handler for the case where the model editor viewport has been interacted with with the keyboardvoid
Event handler for the case where a vertex has been interacted with with the mousevoid
Event handler for the case where the model editor viewport has been interacted with with the mouseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dk.gtz.graphedit.tool.ITool
getGraphic, getHelpDescription
-
Constructor Details
-
AbstractBaseTool
protected AbstractBaseTool()Create a new instance
-
-
Method Details
-
getTooltip
Description copied from interface:ITool
Get a multiline tooltip string that briefly describes this tool- Specified by:
getTooltip
in interfaceITool
- Returns:
- a (possibly) multiline string
-
onViewportMouseEvent
Description copied from interface:ITool
Event handler for the case where the model editor viewport has been interacted with with the mouse- Specified by:
onViewportMouseEvent
in interfaceITool
- Parameters:
e
- The event that happened
-
onVertexMouseEvent
Description copied from interface:ITool
Event handler for the case where a vertex has been interacted with with the mouse- Specified by:
onVertexMouseEvent
in interfaceITool
- Parameters:
e
- The event that happened
-
onEdgeMouseEvent
Description copied from interface:ITool
Event handler for the case where an edge has been interacted with with the mouse- Specified by:
onEdgeMouseEvent
in interfaceITool
- Parameters:
e
- The event that happened
-
onKeyEvent
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 interfaceITool
- Parameters:
e
- The event that happened
-