ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Auto Word Wrap of long text in shapes #305

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Does Spray 0.5 support any word wrap of long text in shapes? I haven't found 
any reference to that in the forum and user guide.

Basically, I have rectangles as shapes that contain long text which I need to 
be automatically broken down into multiple lines. Without the word wrap 
feature, I need to increase the length of the rectangles which makes the whole 
diagram a pain to draw.

Thanks!
Mark

Original issue reported on code.google.com by mark.ast...@gmail.com on 28 Oct 2013 at 9:08

GoogleCodeExporter commented 8 years ago
"Wrapped-text" does not work since I cannot enter text in shapes with that 
option.

Original comment by mark.ast...@gmail.com on 29 Oct 2013 at 9:42

GoogleCodeExporter commented 8 years ago
I just found this forum post: http://www.eclipse.org/forums/index.php/t/203421/

Maybe this can be a starting point when moving the shape class to src to 
override the default generated implementation with such a logic. 

Nevertheless the shapes generator should generate such be code by default.

Original comment by de.abg.r...@gmail.com on 1 Nov 2013 at 6:17

GoogleCodeExporter commented 8 years ago
Thanks for the link!

Is there a bug with "wrapped-text" for declaring text elements in .shape file? 
When I use it (see code below), I don't get any text box for input - just the 
ellipse shape. Am I doing something wrong??

shape MyShape style MyStyle {   
    ellipse {
        size(width=120, height=60)
position(x=0,y=0)                               
        wrapped-text {
            position(x=20, y=5)
            size(width=70, height=15)
            align(horizontal=center, vertical=middle)           
            id = MyTextBox  
        }
    }
}

Original comment by mark.ast...@gmail.com on 2 Nov 2013 at 5:21

GoogleCodeExporter commented 8 years ago
Issue 313 has been merged into this issue.

Original comment by de.abg.r...@gmail.com on 26 Nov 2013 at 9:51

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 27fbae1580af.

Original comment by de.abg.r...@gmail.com on 26 Nov 2013 at 9:13

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 27fbae1580af.

Original comment by de.abg.r...@gmail.com on 21 Mar 2014 at 3:30