How to have multiple lines in org chart node? - slides for java

How can I have multiple lines in an org chart node on the aspose slides for java presentation?

I need for the lines to all fit within the org chart shape. Currently, the lines are overflowing out the bottom of the shape.

I tried this but it’s not working:

smartArtNode.getTextFrame().getTextFrameFormat().setAutofitType(TextAutofitType.Shape);

@thebitmuncher,

I have tried understanding your requirements and have not been able to completely understand that. Can you please share the details in the form of sample presentation and used sample code that what you want Aspose.Slides to offer you in your situation. We will assess your requirements and help you further in this regard.