Vertical alignment of text [message #107902] |
Thu, 04 December 2003 06:09 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?"
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02845 seconds