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); } }