Class AbstractBlockWorkspace.ConnectionTool

    • Constructor Detail

      • ConnectionTool

        protected ConnectionTool()
    • Method Detail

      • onDragStart

        public void onDragStart​(java.awt.Point startPoint,
                                java.awt.Point lastPoint,
                                java.awt.Rectangle r,
                                int modifiers)
        Description copied from class: SelectionTool
        Starting a drag gesture. Many different permutations of current state and key_down masks affect what the drag gesture means:

         1. If the mouse is over a non-container, and SHIFT is not down, the under-mouse object will be MOVED.
         2. If the current item selection is movable, and ALT is down, the current selection will be MOVED.
         3. Otherwise a SELECTION DRAG will start. ALT will turn the drag into FENCE SELECTION at any time, otherwise
            it will be a MARQUEE selection.
         
        Specified by:
        onDragStart in interface IDesignTool
        Overrides:
        onDragStart in class SelectionTool
      • onDrag

        public void onDrag​(java.awt.Point startPoint,
                           java.awt.Point lastPoint,
                           java.awt.Rectangle r,
                           int modifiers)
        Description copied from class: AbstractDesignTool
        Called while the user is dragging. All coordinates are relative to the interaction panel and are in zoomed space.
        Specified by:
        onDrag in interface IDesignTool
        Overrides:
        onDrag in class SelectionTool
      • onDragEnd

        public void onDragEnd​(java.awt.Point startPoint,
                              java.awt.Point lastPoint,
                              java.awt.Rectangle r,
                              int modifiers)
        Description copied from class: AbstractDesignTool
        Called when the user stops dragging. All coordinates are relative to the interaction panel and are in zoomed space.
        Specified by:
        onDragEnd in interface IDesignTool
        Overrides:
        onDragEnd in class SelectionTool
      • onPress

        public void onPress​(java.awt.Point p,
                            int modifiers)
        Description copied from interface: IDesignTool
        Called when the user presses the mouse in the design space.
        Specified by:
        onPress in interface IDesignTool
        Overrides:
        onPress in class AbstractDesignTool
        Parameters:
        p - The point at which they pressed. Relative to the designable container.
        modifiers - A bitmask of modifiers. Comes from InputEvent.getModifiersEx()