]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/participant/RouteGraphTarget.java
Paster.getGraph() method for overriding classes.
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / participant / RouteGraphTarget.java
1 package org.simantics.diagram.participant;
2
3 import java.awt.geom.Point2D;
4
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;
9
10 /**
11  * @author Tuukka Lehtonen
12  */
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);
16     }
17     public IElement getElement() {
18         return (IElement) getField(0);
19     }
20     public RouteGraphNode getNode() {
21         return (RouteGraphNode) getField(1);
22     }
23     public RouteLine getLine() {
24         return (RouteLine) getField(2);
25     }
26     public Point2D getCanvasPosition() {
27         return (Point2D) getField(3);
28     }
29     public Point2D getIntersectionPosition() {
30         return (Point2D) getField(4);
31     }
32 }