Class VertexDragMoveTool

java.lang.Object
dk.gtz.graphedit.tool.AbstractBaseTool
dk.gtz.graphedit.tool.VertexDragMoveTool
All Implemented Interfaces:
ITool

public class VertexDragMoveTool extends AbstractBaseTool
Tool to manipulate the position of vertices. When selected, press down on a vertex and move the mouse around to manipulate to position of said vertex. Note that the action completes when vertex is released.
  • Constructor Details

    • VertexDragMoveTool

      public VertexDragMoveTool()
      Construct a new instance
  • Method Details

    • getHelpDescription

      public String getHelpDescription()
      Description copied from interface: ITool
      Get a multiline string that describe the tool and how to use it
      Returns:
      a (possibly) multiline string
    • 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
      Overrides:
      getTooltip in class AbstractBaseTool
      Returns:
      a (possibly) multiline string
    • getGraphic

      public javafx.scene.Node getGraphic()
      Description copied from interface: ITool
      Get the graphical representation for the tool selection button. Typically just a FontIcon, but can be anything
      Returns:
      a javafx node that will be displayed inside the tool selector button
    • 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
      Overrides:
      onVertexMouseEvent in class AbstractBaseTool
      Parameters:
      e - The event that happened