1 package org.simantics.diagram.participant;
3 import java.awt.geom.Point2D;
5 import org.simantics.diagram.connection.RouteLine;
6 import org.simantics.g2d.element.IElement;
7 import org.simantics.scenegraph.g2d.nodes.connection.RouteGraphNode;
8 import org.simantics.utils.datastructures.map.Tuple;
11 * @author Tuukka Lehtonen
13 public class RouteGraphTarget extends Tuple {
14 public RouteGraphTarget(IElement e, RouteGraphNode rgn, RouteLine line, Point2D canvasPos, Point2D intersection) {
15 super(e, rgn, line, canvasPos, intersection);
17 public IElement getElement() {
18 return (IElement) getField(0);
20 public RouteGraphNode getNode() {
21 return (RouteGraphNode) getField(1);
23 public RouteLine getLine() {
24 return (RouteLine) getField(2);
26 public Point2D getCanvasPosition() {
27 return (Point2D) getField(3);
29 public Point2D getIntersectionPosition() {
30 return (Point2D) getField(4);