X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Felement%2Fhandler%2FTerminalLayout.java;h=8d6f9ab586416082c7a15b4850dca8b9284eb54e;hb=2b0fe692f116091f8d65da664174c92591a077b8;hp=038e68dc2ca275d01e4d17f4a600c88a7fd7abfd;hpb=043ed4538f5bdc16d299bc40c2dd8285a3120f9b;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/TerminalLayout.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/TerminalLayout.java index 038e68dc2..8d6f9ab58 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/TerminalLayout.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/TerminalLayout.java @@ -28,10 +28,14 @@ import org.simantics.g2d.utils.geom.DirectionSet; public interface TerminalLayout extends ElementHandler { /** - * Get a copy of terminal transformation (on element) + * Get specified terminal transformation on specified element + * * @param node * @param t - * @return position of a terminal or null + * @return position of a terminal or null if specified terminal does not + * belong to the specified element. The returned AffineTransform + * must be treated as if it were immutable since the implementation + * is allowed to returned singleton/cached values. */ AffineTransform getTerminalPosition(IElement node, Terminal t);