protected void drag(final PInputEvent event) { super.drag(event); final PDimension aDelta = event.getDeltaRelativeTo(PSWTHandle.this); if (aDelta.getWidth() != 0 || aDelta.getHeight() != 0) { dragHandle(aDelta, event); } }
protected void startDrag(PInputEvent e) { super.startDrag(e); initializeSelection(e); if (shouldStartMarqueeMode()) { initializeMarquee(e); if (!isOptionSelection(e)) { startMarqueeSelection(e); } else { startOptionMarqueeSelection(e); } } else { if (!isOptionSelection(e)) { startStandardSelection(e); } else { startStandardOptionSelection(e); } Collection<WorldObject> nodes = getSelection(); if (nodes.size() > 0) { dragAction = new DragAction(nodes); panHandler.setInverted(true); } } }
protected void drag(PInputEvent e) { super.drag(e); if (shouldStartMarqueeMode() && marquee != null) { updateMarquee(e); if (!isOptionSelection(e)) { computeMarqueeSelection(e); } else { computeOptionMarqueeSelection(e); } } else { dragStandardSelection(e); } }
protected void endDrag(final PInputEvent event) { super.endDrag(event); endHandleDrag(event.getPositionRelativeTo(PSWTHandle.this), event); }
protected void startDrag(final PInputEvent event) { super.startDrag(event); startHandleDrag(event.getPositionRelativeTo(PSWTHandle.this), event); }
protected void endDrag(PInputEvent e) { super.endDrag(e); panHandler.setInverted(false); endSelection(true); }