Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Making certain figures shown in the same location
Making certain figures shown in the same location [message #221088] Wed, 09 August 2006 13:23
Eclipse UserFriend
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
Previous Topic:How to fold the figures in Draw2D diagrams?
Next Topic:Add/Remove Edit Parts Based On Selection
Goto Forum:
  


Current Time: Sat Apr 20 03:25:31 GMT 2024

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

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

Back to the top