Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem with TextFlow clipping text on Zoom
Problem with TextFlow clipping text on Zoom [message #644291] Fri, 10 December 2010 12:26
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009

I'm using Eclipse 3.4 and I've added the work around mentioned in: &#page_top

This has partially solved my issue. I create the figure in the following way:

public static Figure createFigure(String label) {
        Figure wrapFigure = new Figure();
        wrapFigure.setLayoutManager(new StackLayout());
        FlowPage flowPage = new FlowPage();
        ZoomTextFlow textFlow = new ZoomTextFlow();

        textFlow.setLayoutManager(new ParagraphTextLayout(textFlow, ParagraphTextLayout.WORD_WRAP_SOFT));
        textFlow.setToolTip(new Label(label));
        return wrapFigure;

I'm testing the textflow with the string: "This is a very long label to test wrapping and zoom". As soon as you start to zoom (in or out) the right hand side of the text becomes clipped or overflows out of the parent figure it sits in...

I've tried this on Ubuntu and Windows Vista and experienced the same issue. Any help would be greatly appreciated, thanks.
Previous Topic:How to extend Figure to create a rectangle with a line?
Next Topic:Capture key state when tool is selected in Palette?
Goto Forum:

Current Time: Sat May 26 08:17:20 GMT 2018

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

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

Back to the top