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

public abstract class AbstractBaseTool extends Object implements ITool
Most of the default implementations for a simple ITool
  • Constructor Details

    • AbstractBaseTool

      protected AbstractBaseTool()
      Create a new instance
  • Method Details

    • 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
      Returns:
      a (possibly) multiline string
    • onViewportMouseEvent

      public void onViewportMouseEvent(ViewportMouseEvent e)
      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 interface ITool
      Parameters:
      e - The event that happened
    • onVertexMouseEvent

      public void onVertexMouseEvent(VertexMouseEvent e)
      Description copied from interface: ITool
      Event handler for the case where a vertex has been interacted with with the mouse
      Specified by:
      onVertexMouseEvent in interface ITool
      Parameters:
      e - The event that happened
    • onEdgeMouseEvent

      public void onEdgeMouseEvent(EdgeMouseEvent e)
      Description copied from interface: ITool
      Event handler for the case where an edge has been interacted with with the mouse
      Specified by:
      onEdgeMouseEvent in interface ITool
      Parameters:
      e - The event that happened
    • 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
      Parameters:
      e - The event that happened