Starts dragging information from this chart widget based on the
        dragData associated with this item.
357456
def startDrag(self, data):
        
        if not data:
            return
        
        widget = self.scene().chartWidget()
        drag = QDrag(widget)
        drag.setMimeData(data)
        drag.exec_()
902260
function (e) {
    if (e.index == null) {
      this.hovering = null
    } else {
      this.hovering = this.chart.categoryAxis.data[e.index]
    }
  }
1090561
function startDrag(e) {
      // Preventing the event's default action stops text being
      // selectable during the drag.
      e.preventDefault();

      var self = $(this);
      self.trigger('startDrag');

      // Measure how far the user's mouse is from the top of the scrollbar drag handle.
      var eventOffset = e.pageY;
      if (scrollDirection === 'horiz') {
        eventOffset = e.pageX;
      }
      dragOffset = eventOffset - $dragHandleEl.offset()[offsetAttr];

      $(document).on('mousemove', drag);
      $(document).on('mouseup', function() {
        endDrag.call(self);
      });
    }
1325194
function (coordinates) {
                var element = this._candidateForDrag;
                if (!element) {
                    return;
                }

                this._activeDrag = element;
                this._dragStarted = true;
                element.start(coordinates);
            }
282061
def on_drag_data_get(self, widget, context, data, info, time):
        
        library_state = self._get_selected_library_state()
        import rafcon.gui.helpers.state_machine as gui_helper_state_machine
        gui_helper_state_machine.add_state_by_drag_and_drop(library_state, data)
835627
private void initializeDraggablePanel() {
    draggablePanel.setFragmentManager(getSupportFragmentManager());
    draggablePanel.setTopFragment(placeFragment);
    draggablePanel.setBottomFragment(mapFragment);
    TypedValue typedValue = new TypedValue();
    getResources().getValue(R.dimen.x_scale_factor, typedValue, true);
    float xScaleFactor = typedValue.getFloat();
    typedValue = new TypedValue();
    getResources().getValue(R.dimen.y_scale_factor, typedValue, true);
    float yScaleFactor = typedValue.getFloat();
    draggablePanel.setXScaleFactor(xScaleFactor);
    draggablePanel.setYScaleFactor(yScaleFactor);
    draggablePanel.setTopViewHeight(
        getResources().getDimensionPixelSize(R.dimen.top_fragment_height));
    draggablePanel.setTopFragmentMarginRight(
        getResources().getDimensionPixelSize(R.dimen.top_fragment_margin));
    draggablePanel.setTopFragmentMarginBottom(
        getResources().getDimensionPixelSize(R.dimen.top_fragment_margin));
    draggablePanel.initializeView();
    draggablePanel.setVisibility(View.GONE);
  }
298555
def start_drag(self, sprite, cursor_x = None, cursor_y = None):
        """"""
        cursor_x, cursor_y = cursor_x or sprite.x, cursor_y or sprite.y

        self._mouse_down_sprite = self._drag_sprite = sprite
        sprite.drag_x, sprite.drag_y = self._drag_sprite.x, self._drag_sprite.y
        self.__drag_start_x, self.__drag_start_y = cursor_x, cursor_y
        self.__drag_started = True
1217259
def setDragData(self, format, value):
        
        if value is None:
            self._dragData.pop(nativestring(format), None)
        else:
            self._dragData[nativestring(format)] = value
61998
private void initData(final List<ChartData> DATA) {
        if (null == DATA || DATA.isEmpty()) {
            for (int i = 0; i < (getNoOfSectors() + 1); i++) { addData(new ChartData(0d)); }
        } else {
            setData(DATA);
        }
    }
1309698
function(){
                // check for related events
                if ( $.data( this, drag.datakey ) )
                    return;
                // initialize the drag data with copied defaults
                var data = $.extend({ related:0 }, drag.defaults );
                // store the interaction data
                $.data( this, drag.datakey, data );
                // bind the mousedown event, which starts drag interactions
                $event.add( this, "touchstart mousedown", drag.init, data );
                // prevent image dragging in IE...
                if ( this.attachEvent )
                    this.attachEvent("ondragstart", drag.dontstart );
            }
475720
def mousePressEvent(self, event):
        
        ddata = self.dataset().dragData()
        if ddata:
            self.startDrag(ddata)
        
        super(XChartDatasetItem, self).mousePressEvent(event)
16974
protected void onSelectedItemsChanged() {
        final Collection<ItemT> selectedItems = getSelectedItems();
        if (selectedItems.isEmpty()) {
            anchorLabel();
            getInputWidget().setText("");
        } else {
            getInputWidget().setText(getItemPrinter().printCollection(selectedItems));
            floatLabel();
        }
        if (itemPickerListener != null) itemPickerListener.onSelectionChanged(this, selectedItems);
    }
750805
function() {
    if (!this._shape.dragging) {
      this._shape.dragging = new L.Handler.PathDrag(this._shape);
    }
    this._shape.dragging.enable();
    this._shape
      .on('dragstart', this._onStartDragFeature, this)
      .on('dragend', this._onStopDragFeature, this);
  }
1041744
def _startDPDrag(self):
        """"""
        dp = self._dp_menu_on
        if dp and dp.archived:
            drag = QDrag(self)
            mimedata = QMimeData()
            mimedata.setUrls([QUrl.fromLocalFile(dp.fullpath)])
            drag.setMimeData(mimedata)
            drag.exec_(Qt.CopyAction | Qt.LinkAction)
613845
def start_chart(self):
        """"""
        self.current_dataset_name = self.chart_name
        self.datafile.init_data(self.current_dataset_name, mode='continuous')
        self.chart_name = increment_title(self.chart_name)
        
        # stimulus tracker channel hard-coded at least chan for now
        self.player.start_continuous([self.aichan, u"PCI-6259/ai31"])
295131
private void clearDrag() {

        if (m_listItemWidget != null) {
            Iterator<Widget> buttonIterator = m_listItemWidget.getButtonPanel().iterator();
            while (buttonIterator.hasNext()) {
                Widget button = buttonIterator.next();
                button.getElement().getStyle().clearVisibility();
            }
        }
        if (m_helper != null) {
            m_helper.removeFromParent();
            m_helper = null;
        }
        if (m_provisionalParent != null) {
            m_provisionalParent.removeFromParent();
            m_provisionalParent = null;
        }
        setVisible(true);

    }
416414
@Override
	protected void resetDrag()
	{
		if (!isDraggingItemStack())
			return;

		//if (!pickedItemStack.isEmpty())
		pickedItemStack = draggedItemStack.copy();

		draggedSlots.forEach(s -> s.setDraggedItemStack(ItemStack.EMPTY));

		draggedSlots.clear();
		draggedItemStack = null;
		dragType = -1;
	}