Creating an off-page connector with the API

The following example shows how to create an off-page connector and add it to a network component.

How to create an off-page connector with the API

IltDefaultDataSource dataSource = new IltDefaultDataSource();
IltOffPageConnector opc = new IltOffPageConnection("Region B");
IlpPoint center = new IlpPoint(190, 190);
opc.setPosition(center);
datasource.addObject(opc);}