Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to drag and drop coaches(cars) smoothly?
How to drag and drop coaches(cars) smoothly? [message #226348] Fri, 10 November 2006 03:27
Eclipse UserFriend
Originally posted by:

I'm now writting a programme that display a train station,
the station has tracks and coaches on it .
I want to drag and move coaches smoothly from one track to another,
so I make a class represent coach(car),it extends CLable and implements MouseListener and MouseMoveListener, I implements its drag and drop by compute the offset of e.x,e.y and reset location of these clabels, but during the movement it cannot display very smoothy,it has something like illusion(I'm sorry my english is not good), so i print down time by System.nanoTime(),and found it speeds much time in relocating clabels,
i don't know how to solve this problem, I haven't use GEF yet ,whether GEF can solve this problem?
please give me some advise, thank you much!
Previous Topic:TreeViewer with lazy loading
Next Topic:why cannot i find Draw2D package in eclipse 3.2?
Goto Forum:

Current Time: Sun May 20 14:18:58 GMT 2018

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

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

Back to the top