Implementing gridline-like functionality [message #667148] |
Wed, 27 April 2011 02:22 |
Eclipse User |
|
|
|
I would like to draw a background object that scrolls along with the canvas, very similar to rulers and gridlines in the GEF library. It's actually a menu-like window/toolbar drawn by the side which contains custom objects and controls. It also has custom gridlines which can be toggled.
I've tried using a scrollbar listener that redraws this object on scroll, but it doesn't play well with zoom(short of using a zoom listener), and flickers quite badly when scrolling. I've also tried drawing the custom gridline using a polyline(and similarly redrawing on scroll), but I have no idea how long I should extend this line.
Do you have any tips or tutorials to get me started?
|
|
|
Powered by
FUDForum. Page generated in 0.03278 seconds