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 toolvoidEvent handler for the case where an edge has been interacted with with the mousevoidEvent handler for the case where the model editor viewport has been interacted with with the keyboardvoidEvent handler for the case where a vertex has been interacted with with the mousevoidEvent 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, waitMethods 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:IToolGet a multiline tooltip string that briefly describes this tool- Specified by:
getTooltipin interfaceITool- Returns:
- a (possibly) multiline string
-
onViewportMouseEvent
Description copied from interface:IToolEvent handler for the case where the model editor viewport has been interacted with with the mouse- Specified by:
onViewportMouseEventin interfaceITool- Parameters:
e- The event that happened
-
onVertexMouseEvent
Description copied from interface:IToolEvent handler for the case where a vertex has been interacted with with the mouse- Specified by:
onVertexMouseEventin interfaceITool- Parameters:
e- The event that happened
-
onEdgeMouseEvent
Description copied from interface:IToolEvent handler for the case where an edge has been interacted with with the mouse- Specified by:
onEdgeMouseEventin interfaceITool- Parameters:
e- The event that happened
-
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- Parameters:
e- The event that happened
-