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.
        The controller.
      • translate

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