Skip to main content



      Home
Home » Eclipse Projects » GEF » Displaying StringList in a Figure.
Displaying StringList in a Figure. [message #189631] Wed, 27 July 2005 18:50 Go to next message
Eclipse UserFriend
Originally posted by: mom.mom.gmx.net

Hello,

I need to display a StringList in my Figure. As far as I read the doc,
there is no Figure which can do this. The nearest is a Scrollpane.
So am I right that I have to implement this 'by hand' ? (I also need
Stuff like selecting a Item, editing etc. )

regards Rainer
Re: Displaying StringList in a Figure. [message #190835 is a reply to message #189631] Sat, 06 August 2005 11:14 Go to previous message
Eclipse UserFriend
Originally posted by: venkataraman.m.tcs.com

Use ToolbarLayout (aligns vertically/horizontally) on a container figure
and add Draw2D Label figures to them ... something like this ...


/* container figure */
Figure container = new Figure();

/* create layout mgr */
ToolbarLayout lmgr = new ToolbarLayout(false);/* children in column */
lmgr.setSpacing(5);
lmgr.setStretchMinorAxis(false); /* do not stretch horizontally */

/* set layout mgr with the container figure */
container.setLayoutManager(lmgr);

/* add children */
for(int i=0; i<n; i++) {
container.add(new Label("String" + i));
}

Thanks
Venkat
Previous Topic:How to combine GraphicEditor and TreeEditor?
Next Topic:Non-selectable children in XYLayout
Goto Forum:
  


Current Time: Sun Aug 31 19:54:40 EDT 2025

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

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

Back to the top