Get connector start and end points

Hi

Is there a way to get connector start and end points like that one in line:

line.getStartPoint();
line.getEndPoint();

I could use these methods:

connector.getBeginConnectedShape();
connector.getBeginConnectionSite();

but what can I do if the connector isn’t connected to any shape.

thanks;

Hello Dear,

I have investigate the issue in detail and feel sorry to share that you can not access the start and end points of connector even if it is not connected to any shapes Java environment. The issue is that java does not allow to access java.awt.geom.Path2D.Float to be accessed from outside package. However, this can be achieved in .NET environment. For your reference, I have attached the code snippets for both .NET and Java environment. Theoretically, the Java code is right but since you cannot access the desired points it gives error.

[C#]

Connector connector = slide.Shapes.AddConnector(type, new System.Drawing.Point(500, 500), new Point(1000, 1000));

PointF p1, p2;

Aspose.Slides.AutoShape.AutoShapePath path4 = (Aspose.Slides.AutoShape.AutoShapePath)connector.Paths[0];

[Java]

Connector connector= slide.getShapes().addConnector(ConnectorType.ELBOW, new java.awt.geom.Point2D.Float(2000, 1650),new java.awt.geom.Point2D.Float(4000, 1350));
com.aspose.slides.AutoShape.AutoShapePath path = (com.aspose.slides.AutoShape.AutoShapePath)connector.getPaths ().get(0);
java.awt.geom.Point2D p1,p2;
p1=path.getPath().getPoint(0);
p2=path.getPath().getPoint(1);

Thanks and Regards,

thanks for your reply

may be you can open these methods in a future version so that i can use them outside the package.

thanks;