if (port instanceof IOPort) {
// Create a diagonal connector for multiports, if necessary.
IOPort ioPort = (IOPort) port;
if (ioPort.isMultiport()) {
int numberOfLinks = ioPort.insideRelationList().size();
if (numberOfLinks > 1) {
// The diagonal is necessary.
// Line depends on the orientation.
double startX;