Skip to main content



      Home
Home » Eclipse Projects » GEF » Layout in Circuit Figure
Layout in Circuit Figure [message #61211] Sun, 02 February 2003 18:47 Go to next message
Eclipse UserFriend
Originally posted by: oro7d3.netscape.net

I am trying to change the layout of the Circuit Figure so that the figures
withing the circuit are arranged in row-by-row (1 row, 1 figure hort) and if
the Circuit Figure size does not fit all its children, scroll bar will
appear. So I switch the layout from StackLayout to FlowLayout. But what I
find out it Scroll bar does not appear when the parent (the circuit) is not
big enough. Could you please if I miss something?

ScrollPane scrollpane = new ScrollPane();

pane = new FreeformLayer();

pane.setLayoutManager(new FreeformLayout());

FlowLayout fl = new FlowLayout();

fl.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);

// before

//setLayoutManager(new StackLayout());

// after

setLayoutManager(fl);

add(scrollpane);
Re: Layout in Circuit Figure [message #61237 is a reply to message #61211] Mon, 03 February 2003 00:34 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I think the circuit uses a FreeFormViewport, which has a modified layout and
expects a freeformFigure as the contents. Change it to just use a normal
viewport.

"oro" <oro7d3@netscape.net> wrote in message
news:b1k9cn$tbg$1@rogue.oti.com...
> I am trying to change the layout of the Circuit Figure so that the figures
> withing the circuit are arranged in row-by-row (1 row, 1 figure hort) and
if
> the Circuit Figure size does not fit all its children, scroll bar will
> appear. So I switch the layout from StackLayout to FlowLayout. But what I
> find out it Scroll bar does not appear when the parent (the circuit) is
not
> big enough. Could you please if I miss something?
>
> ScrollPane scrollpane = new ScrollPane();
>
> pane = new FreeformLayer();
>
> pane.setLayoutManager(new FreeformLayout());
>
> FlowLayout fl = new FlowLayout();
>
> fl.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
>
> // before
>
> //setLayoutManager(new StackLayout());
>
> // after
>
> setLayoutManager(fl);
>
> add(scrollpane);
>
>
Previous Topic:view & draw2d
Next Topic:View & Toolbar
Goto Forum:
  


Current Time: Thu May 08 09:27:58 EDT 2025

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

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

Back to the top