Package diva.graph

Class NodeDragInteractor

    • Constructor Detail

      • NodeDragInteractor

        public NodeDragInteractor​(GraphController controller)
        Create a new NodeDragInteractor and give it a pointer to its controller to it can find other useful objects
    • Method Detail

      • getController

        public GraphController getController()
        Return the controller set in the constructor.
        Returns:
        The controller.
      • translate

        public void translate​(LayerEvent e,
                              double x,
                              double y)
        Drag all selected nodes and move any attached edges
        Overrides:
        translate in class DragInteractor
        Parameters:
        e - The event
        x - the x distance
        y - the y distance