Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Centering text in TextFlow
Centering text in TextFlow [message #167666] Thu, 10 February 2005 02:11 Go to next message
Ravi is currently offline RaviFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

I want to center the text in a multine TextFlow figure. i.e. if there are
multiple lines in a TextFlow, i want to "center" each line instead of it
being aligned towards the left.

Is there a way to do this?

thanks,
-Ravi
Re: Centering text in TextFlow [message #167682 is a reply to message #167666] Thu, 10 February 2005 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

See BlockFlow#setHorizontalAlignment(int)

"Ravi" <rshankark@hotmail.com> escreveu na mensagem
news:cuefvs$ao4$1@www.eclipse.org...
> Hi,
>
> I want to center the text in a multine TextFlow figure. i.e. if there are
> multiple lines in a TextFlow, i want to "center" each line instead of it
> being aligned towards the left.
>
> Is there a way to do this?
>
> thanks,
> -Ravi
>
>
>
Re: Centering text in TextFlow [message #167690 is a reply to message #167682] Thu, 10 February 2005 06:18 Go to previous message
Ravi is currently offline RaviFriend
Messages: 19
Registered: July 2009
Junior Member
Works great... Thanks!!


"Randy Hudson" <none@us.ibm.com> wrote in message
news:cueofg$8ff$1@www.eclipse.org...
> See BlockFlow#setHorizontalAlignment(int)
>
> "Ravi" <rshankark@hotmail.com> escreveu na mensagem
> news:cuefvs$ao4$1@www.eclipse.org...
>> Hi,
>>
>> I want to center the text in a multine TextFlow figure. i.e. if there are
>> multiple lines in a TextFlow, i want to "center" each line instead of it
>> being aligned towards the left.
>>
>> Is there a way to do this?
>>
>> thanks,
>> -Ravi
>>
>>
>>
>
>
Previous Topic:Help needed working with draw2d sample code for graphical tree layout
Next Topic:child figures appearing above the parent figure label
Goto Forum:
  


Current Time: Sat May 04 12:45:30 GMT 2024

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

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

Back to the top