[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.gef] Slider using GEF and draw2D
|
Hello Guys,
I'm trying to implement slider functionality in my application based on
GEF/draw2D. I have seen previous post where is suggest to implements it as
follows:
MyScrollBar scrollBar = new MyScrollBar();
scrollBar.setBackgroundColor(ColorConstants.red);
panel.add(scrollBar);
layout.setConstraint(scrollBar, new Rectangle(0, 0, 20, 70));
However I'm still not able to do so because of my ignorance to GEF/draw2d.
I'm not able to figure out how to initialize panel and layout object?
As a alternative what I tried doing is extend Figure class, I have also
tried extending ScrollBar and ScrollPane. When I extend scrollbar I do see
the scrollbar but I'm not able to attach label as well as my Max/Min
display which I want user to see.
If there is any sample out there it'll be of great use.
BTW: I've tried looking into GEF example etc and found many similar apps
but I'm still not able to work it out.
Thanks for your help.