I’m using a JGoBasicNode with setLabelSpot(JGoBasicNode.Center) and setting allignment of label to left; setAlignment(JGoText.ALIGN_LEFT). This allignment code does not work, i’ve tried changing label spot and many things but cant’t succeed. Is that possible to allign a text in a JGoBasicNode which has a label spot with center value?
Your override of createDrawable is no problem. If you simply add that override, your node will look as follows:
The problem is in your override of the constructor. You can’t set both Wrapping and Multiline to true. If you do, wrapping will override the multiline alignment. Also, you can’t set AutoResize to false on a JGoBasicNode. If you look at the source code for JGoBasicNode, you’ll see that the initCommon method sets Resizable to true and AutoResize to false whenever the constructor is called, and these values are necessary to get the standard JGoBasicNode appearance and behavior.
That’s right. Thanks! Could you give me a hint about alligning text to left again, after editing the label? Becouse when i edited text, it alligns to center.