]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/WholeElementTerminals.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / impl / WholeElementTerminals.java
1 package org.simantics.g2d.element.handler.impl;
2
3 import java.awt.Shape;
4 import java.util.Collection;
5
6 import org.simantics.g2d.diagram.handler.Topology.Terminal;
7 import org.simantics.g2d.element.ElementUtils;
8 import org.simantics.g2d.element.IElement;
9
10 /**
11  * @author Tuukka Lehtonen
12  */
13 public class WholeElementTerminals extends Terminals {
14
15     private static final long serialVersionUID = -1366493887226451146L;
16
17     public WholeElementTerminals(Collection<ObjectTerminal> ts) {
18         super(ts);
19     }
20
21     @Override
22     public Shape getTerminalShape(IElement node, Terminal t) {
23         // For each terminal, return the shape of the element.
24         return ElementUtils.getElementShapeOrBounds(node);
25     }
26
27 }