|
If I have a rectange with a long text label \ne. g. \n"abcdefg hijklmnop",\nis it possible to break the label if the rectangle is resized to a smaller size to \nabcdefg \nhijklmnop \n? \nOr do I have to do it on my own like in the labels.hml exmaple. |
|
Check out the wrapping.html example. But this is not possible in JGraphX? Only in the javascript library?
(22 Mar '11, 02:20)
eisbaw
Use "whiteSpace=wrap" in Java.
(22 Mar '11, 02:23)
Gaudenz ♦♦
Thx, Gaudenz. Just for reference: \nObject v1 = graph.insertVertex(parent, null, "Hello again", 20, 20, 80, 30, "strokeColor=red;fillColor=red;whiteSpace=wrap");
(22 Mar '11, 13:26)
eisbaw
|