Making certain figures shown in the same location [message #221088] |
Wed, 09 August 2006 13:23 |
Eclipse User |
|
|
|
Originally posted by: remove-this-pgarbacz.pgs-soft.com.remove.this
Hi everyone,
I am getting back to this problem again and I think I have no solution for
this. What I mean to do is a GraphicalViewer extension that would show some
figures, but some of those should move as the viewport moves. This is pretty
easy - I can setup listeners in several places:
- the application can listen to PropertyChange called "view location" or
- it can listen to PropertyChange in appropriate RangeModel or
- it can listen to Selection event in appropriate Scrollbar component.
I did what I described above and having the location set programatically it
works fine - my figure does not move and the viewport shows different
portion of my diagram. But whenever I click on the scrollbar or drag the
scrollbar the FigureCanvas associated with the GraphicalViewer does a
movement of some portion of the image and then redraws the rest. The problem
is that when this part of previous image is copied to a new location causes
moving this figure I intended to be still. After all these are done my code
that updates the location of the figure is executed and the figure appears
at the proper position, but it must be refreshed causing flickering. I would
like to get rid of this effect.
Please tell me what am I doing wrong or how should I configure the
GraphicalViewer to achieve what I meant. Is there ever a solution?
Regards,
Pawel
|
|
|
Powered by
FUDForum. Page generated in 0.02797 seconds