Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Realtime scrolling
Realtime scrolling [message #210882] Mon, 06 March 2006 16:27
Eclipse UserFriend
Originally posted by: fbfd.NOSPAMarcor.de

Hi,

I'm developing an editor where I need realtime (horizontal) scrolling.
My approach so far ist a Thread that updates the Viewport position of
the GraphicalViewer every 20ms.

FigureCanvas canvas =
((FigureCanvas)(getGraphicalViewer().getControl()));

Viewport viewPort = canvas.getViewport();
viewPort.setHorizontalLocation((int) position);

The drawing is not very smooth. However when manually scrolling it
seems much faster and my CPU usage isn't very high either.

Is there a better way to do this?

Thanks.

Best Regards,
Fabian
Previous Topic:gef diagram in table cell
Next Topic:how to Display a gif image on editor
Goto Forum:
  


Current Time: Wed Jan 22 17:39:46 GMT 2025

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

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

Back to the top