Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Wrapping text in a textbox created by gaService(text wrap in textbox)
Wrapping text in a textbox created by gaService [message #1396042] Mon, 07 July 2014 20:01 Go to next message
Anil tanneru is currently offline Anil tanneruFriend
Messages: 21
Registered: March 2014
Junior Member
I am trying to wrap the text i need to put in Text Container created by gaService.createPlainText() .How to wrap the text with this textbox.
Re: Wrapping text in a textbox created by gaService [message #1396490 is a reply to message #1396042] Tue, 08 July 2014 11:23 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Anil,

Graphiti does not offer special support for wrapping texts, but you can use
MultiText graphics algorithms to render strings that contain line separators
and should render in multiple lines. The text itself can be wrapped by any
Java means, a short Google search for "Java wrap text" returned lots of
results, e.g.
http://stackoverflow.com/questions/4055430/java-code-for-wrapping-text-lines-to-a-max-line-width

Michael
Re: Wrapping text in a textbox created by gaService [message #1398977 is a reply to message #1396490] Fri, 11 July 2014 21:58 Go to previous messageGo to next message
Anil tanneru is currently offline Anil tanneruFriend
Messages: 21
Registered: March 2014
Junior Member
Thanks Michael.We developed code for that.I have one more quick question reg. generating "PNG" image from graphiti diagram using commandline execution, like below

eclipse.exe "anygraphitiClass" "inputdiagramFile".

I was unable to create e/o opening editor.Is there any other alternate in graphiti.
Thanks in Advance.


Regards,
Anil
Re: Wrapping text in a textbox created by gaService [message #1401289 is a reply to message #1398977] Tue, 15 July 2014 11:52 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Unfortunately not. We rely on GEF functionality here which requires an open
editor.

Michael
Previous Topic:Manhattan Connection Router
Next Topic:How to achieve floating/attached labels?
Goto Forum:
  


Current Time: Tue Apr 23 06:07:03 GMT 2024

Powered by FUDForum. Page generated in 0.04393 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top