Need multiple connector points for the rectangle shape

Hi Team ,

Can you please implement multiple connector points for the rectangle shape ? Currently it supports only Up , Down , Left and Right connection points.

Thanks,
Kishan

@kishannavale

A feature request as DIAGRAMJAVA-50819 has been logged in our issue tracking system for the sake of implementation. We will further investigate its feasibility and let you know as soon as it is resolved. Please give us some time.

@kishannavale

Please try to use the below code in order to achieve your requirements:

Connection connection = new Connection();
ShapeCollection shapes = diagram.getPages().get(0).getShapes();
Shape shape = shapes.get(0);
//set index of connection
connection.setIX(shape.getMasterShape().getConnections().getCount());
connection.getX().setValue(shape.getXForm().getWidth().getValue());
connection.getY().setValue(shape.getXForm().getHeight().getValue() -0.1);
shape.getConnections().add(connection);