|
Re: Is it possible to do zooming in a separate thread? [message #231182 is a reply to message #231085] |
Wed, 28 February 2007 06:25 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
You need to figure out what's taking up so much time. Zooming is pretty
much all UI stuff (painting), so it can't be moved to a separate thread.
How big is your diagram? You're not animating the zoom, are you? Do you
have any figures that take a lot of time to paint? Are you using advanced
graphics? How many figures/editparts are there in your diagram?
"Steinar Bang" <sb@dod.no> wrote in message
news:87hct87wbx.fsf@bang.priv.no...
>I have a GEF viewer displaying a big ER diagram. Zooming to show the
> entire ER schema, and zooming in to show a smaller part of the
> diagram, takes a lot of time.
>
> Is it possible to do the zooming operations in a separate thread, so
> that the GUI doesn't appear to be frozen while the ZoomManager and
> viewer uses time on whatever it uses time on?
>
> Thanx!
>
>
> - Steinar
|
|
|
Re: Is it possible to do zooming in a separate thread? [message #232144 is a reply to message #231182] |
Sun, 25 March 2007 12:58 |
Steinar Bang Messages: 108 Registered: July 2009 |
Senior Member |
|
|
>>>>> "Pratik Shah" <none@unknown.com>:
> You need to figure out what's taking up so much time. Zooming is pretty
> much all UI stuff (painting), so it can't be moved to a separate thread.
> How big is your diagram? You're not animating the zoom, are you?
Not intentionally. I may be, due to cut'n paste stuff I don't
entirely understand, from GEF examples, though...
> Do you have any figures that take a lot of time to paint?
> Are you using advanced graphics?
I'm not sure what's advanced or not. There's the table figure, which:
- extends Figure
- has a verdtical toolbar layout holding a label and a fields figure
- has a border, a background colour and a foreground color and is opaque
(in short: it's a box with a label at the top)
The fields figure is a child of the table figure:
- extends figure
- has a flow layout
- has a border, background and foreground colours and is opaque
The fields themselves are just labels dropped into the fields figure.
> How many figures/editparts are there in your diagram?
For edit parts, the numbers are:
- 916 table edit parts
- 13020 field edit pars (children of tables)
- 542 relationship edit parts
That would make the total number of figures:
916 table figures
916 table label figures
916 fields figures
13020 labels for the fields
===========================
15768 figures total
In addition comes 542 relationship figures (which may be handled
separately...?).
Is that a lot?
|
|
|
Powered by
FUDForum. Page generated in 0.03484 seconds