Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Vertical alignment of text
Vertical alignment of text [message #107902] Thu, 04 December 2003 06:09 Go to next message
Eclipse UserFriend
Originally posted by: PeterMayne.ap.spherion.com

I'm drawing text within a Rectangle in a Figure as follows:

FlowPage fp = new FlowPage();
BlockFlow bf = new BlockFlow();
bf.setHorizontalAligment(PositionConstants.CENTER);
TextFlow tf = new TextFlow();
tf.setText("xyzzy");
tf.setFont(DISPLAY_FONT);
bf.add(tf);
fp.add(bf);
add(fp);
.
.
fp.setBounds(r);

This works, but I can't figure out how to vertically align the text
within the given Rectangle. Where aren't I looking?

Thanks.

PJDM
--
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"Dude, where's my IDE?"
Re: Vertical alignment of text [message #107934 is a reply to message #107902] Thu, 04 December 2003 14:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Vertical alignment is not yet implemented.

"Peter Mayne" <PeterMayne@ap.spherion.com> wrote in message
news:bqmiu3$714$1@eclipse.org...
> I'm drawing text within a Rectangle in a Figure as follows:
>
> FlowPage fp = new FlowPage();
> BlockFlow bf = new BlockFlow();
> bf.setHorizontalAligment(PositionConstants.CENTER);
> TextFlow tf = new TextFlow();
> tf.setText("xyzzy");
> tf.setFont(DISPLAY_FONT);
> bf.add(tf);
> fp.add(bf);
> add(fp);
> .
> .
> fp.setBounds(r);
>
> This works, but I can't figure out how to vertically align the text
> within the given Rectangle. Where aren't I looking?
>
> Thanks.
>
> PJDM
> --
> Peter Mayne
> Spherion Technology Solutions
> Canberra, ACT, Australia
> "Dude, where's my IDE?"
>
Re: Vertical alignment of text [message #1702101 is a reply to message #107902] Sun, 19 July 2015 14:24 Go to previous message
Dinko Ivanov is currently offline Dinko IvanovFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

Are there any plans for implementing vertical alignment for block flows?
What would be the direction if I'd like to implement it (or workaround a solution) myself?

Thanks and regards,
Dinko Ivanov
Previous Topic:GEF4 - Setup API Baselines
Next Topic:How to calculate the cursor Position in a Eclipse graphical editor ??
Goto Forum:
  


Current Time: Fri Mar 29 05:38:19 GMT 2024

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

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

Back to the top