Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Determine visible part of figure
Determine visible part of figure [message #65264] Tue, 18 February 2003 09:25 Go to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

I have big and complex figure. Figure is so big, that user can see only
small part of it in scrolled window. I would like to optimize drawing by
drawing only visible part of figure. Of course, Graphics clips invisible
parts, but I don't want even try to draw them, because this is waste of
CPU. How can I determine visible part of figure?

--
SY, Kosta.
Re: Determine visible part of figure [message #65285 is a reply to message #65264] Tue, 18 February 2003 13:24 Go to previous message
Eclipse UserFriend
Originally posted by: ondrej.chylik.disnet-software.com

Hi,

graphics.getClipRect(aRectangle) called in your paintFigure(graphics) should give you the area that actually gets painted.

Regards,
Ondrej


"Konstantin Scheglov" <scheglov_ke@nlmk.ru>:
> I have big and complex figure. Figure is so big, that user can see only
> small part of it in scrolled window. I would like to optimize drawing by
> drawing only visible part of figure. Of course, Graphics clips invisible
> parts, but I don't want even try to draw them, because this is waste of
> CPU. How can I determine visible part of figure?
>
> --
> SY, Kosta.
Previous Topic:Difference between version 2.02 and 2.1
Next Topic:design pattern for representation attributes not in the model
Goto Forum:
  


Current Time: Mon Dec 30 17:29:32 GMT 2024

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

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

Back to the top