X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Felement%2Fhandler%2Fimpl%2FWholeElementTerminals.java;h=cac92582c571cb98af24245f9c3f91ea4571aea4;hb=0406a4f2330a74fdb4517be525687e01f750da7f;hp=443c3fce052a243fde799e3216f10b9be9397059;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/WholeElementTerminals.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/WholeElementTerminals.java index 443c3fce0..cac92582c 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/WholeElementTerminals.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/WholeElementTerminals.java @@ -1,27 +1,27 @@ -package org.simantics.g2d.element.handler.impl; - -import java.awt.Shape; -import java.util.Collection; - -import org.simantics.g2d.diagram.handler.Topology.Terminal; -import org.simantics.g2d.element.ElementUtils; -import org.simantics.g2d.element.IElement; - -/** - * @author Tuukka Lehtonen - */ -public class WholeElementTerminals extends Terminals { - - private static final long serialVersionUID = -1366493887226451146L; - - public WholeElementTerminals(Collection ts) { - super(ts); - } - - @Override - public Shape getTerminalShape(IElement node, Terminal t) { - // For each terminal, return the shape of the element. - return ElementUtils.getElementShapeOrBounds(node); - } - -} +package org.simantics.g2d.element.handler.impl; + +import java.awt.Shape; +import java.util.Collection; + +import org.simantics.g2d.diagram.handler.Topology.Terminal; +import org.simantics.g2d.element.ElementUtils; +import org.simantics.g2d.element.IElement; + +/** + * @author Tuukka Lehtonen + */ +public class WholeElementTerminals extends Terminals { + + private static final long serialVersionUID = -1366493887226451146L; + + public WholeElementTerminals(Collection ts) { + super(ts); + } + + @Override + public Shape getTerminalShape(IElement node, Terminal t) { + // For each terminal, return the shape of the element. + return ElementUtils.getElementShapeOrBounds(node); + } + +}