Spacing BlockFlows [message #130404] |
Tue, 04 May 2004 08:39 |
Graeme Rocher Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm using BlockFlow objects to draw my paragraphs, however I want them to
be spaced further apart, being at least 2 line breaks apart (They
currently look like they only have 1 line break inbetween).
I have tried everything, including modifying the size, the bounds, trying
different layout managers and I can't get them to have more space before
or after, any ideas? My current code is like this for each paragraph that
I'm drawing:
// create new block for paragraph
BlockFlow paraFlow = new BlockFlow();
// set the text
TextFlow text = new TextFlow("this is some text");
// set the layout
text.setLayoutManager(new ParagraphTextLayout(text));
page.add(paraFlow);
|
|
|
Powered by
FUDForum. Page generated in 0.02988 seconds