]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/TerminalLayout.java
Support for dynamic transforms for both elements and terminals
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / TerminalLayout.java
index 038e68dc2ca275d01e4d17f4a600c88a7fd7abfd..8d6f9ab586416082c7a15b4850dca8b9284eb54e 100644 (file)
@@ -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);