Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Implementing gridline-like functionality
Implementing gridline-like functionality [message #667148] Wed, 27 April 2011 02:22
oinkl is currently offline oinkl
Messages: 17
Registered: September 2010
Junior Member
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?
Previous Topic:[ZEST] current status
Next Topic:Clipping of draw2d figures while using PrintFigureOperation
Goto Forum:
  


Current Time: Sat Apr 19 15:56:55 EDT 2014

Powered by FUDForum. Page generated in 0.02424 seconds