1 package org.simantics.district.network.ui.participants;
\r
3 import java.awt.geom.Point2D;
\r
4 import java.util.Set;
\r
6 import org.simantics.g2d.canvas.ICanvasParticipant;
\r
7 import org.simantics.g2d.diagram.participant.pointertool.PointerInteractor;
\r
8 import org.simantics.g2d.diagram.participant.pointertool.TerminalUtil.TerminalInfo;
\r
9 import org.simantics.g2d.element.IElement;
\r
11 public class DNPointerInteractor extends PointerInteractor {
\r
14 protected ICanvasParticipant createConnectTool(TerminalInfo ti, int mouseId, Point2D startCanvasPos) {
\r
15 return super.createConnectTool(ti, mouseId, startCanvasPos);
\r
19 protected ICanvasParticipant createTranslateTool(int mouseId, Point2D startCanvasPos, Point2D curCanvasPos, Set<IElement> elementsToDrag) {
\r
20 return new DNTranslateMode(startCanvasPos, curCanvasPos, mouseId, elementsToDrag);
\r