import org.simantics.g2d.routing.IRouter2;
import org.simantics.g2d.routing.TrivialRouter2;
import org.simantics.scenegraph.utils.GeometryUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.map.hash.THashMap;
*/
public class DiagramUtils {
+ private static final Logger LOGGER = LoggerFactory.getLogger(DiagramUtils.class);
/**
* Get rectangle that contains all elements or null if there are no elements.
* @param d
for (final IElement element : elementsToFix) {
if (!d.containsElement(element)) {
- System.err.println("Fixing element not contained by diagram " + d + ": " + element);
+ LOGGER.warn("Fixing element not contained by diagram " + d + ": " + element);
continue;
}
}
/**
- * Execute the specified {@link Callback} within a diagram write transaction
+ * Execute the specified <code>callback</code> within a diagram write transaction
* using the {@link TransactionContext} handler available in the
* {@link DiagramClass} of the specified {@link Diagram}. The diagram must
* contain a valid value for the {@link DiagramHints#KEY_MUTATOR} hint which