Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef-dev] Spacing BlockFlows

Title: Message
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);
 
Graeme

Back to the top