Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Retrieve Graphics clipping region
Retrieve Graphics clipping region [message #199865] Wed, 19 October 2005 20:56 Go to next message
Brad Reynolds is currently offline Brad ReynoldsFriend
Messages: 309
Registered: July 2009
Senior Member
Is there a way to retrieve the clipping region from the Graphics
instance passed to figure paint methods? I'm struggling to find it...

Thanks,
brad
Re: Retrieve Graphics clipping region [message #199874 is a reply to message #199865] Wed, 19 October 2005 21:08 Go to previous messageGo to next message
Brad Reynolds is currently offline Brad ReynoldsFriend
Messages: 309
Registered: July 2009
Senior Member
Actually let me reprase. I have a figure that's in a viewport. It's
the main content figure of a table and it drawns grid lines between it's
children. I'd like to just draw the lines that are currently visible in
the Viewport. So I'd only have to draw 10 lines instead of 500 and be
able to terminate my loop much sooner.

Brad Reynolds wrote:
> Is there a way to retrieve the clipping region from the Graphics
> instance passed to figure paint methods? I'm struggling to find it...
>
> Thanks,
> brad
Re: Retrieve Graphics clipping region [message #199890 is a reply to message #199865] Wed, 19 October 2005 21:21 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Rectangle clip = new Rectangle();
graphics.getClip(clip);

"Brad Reynolds" <bradleyjames@gmail.com> wrote in message
news:dj6btd$fhs$1@news.eclipse.org...
> Is there a way to retrieve the clipping region from the Graphics instance
> passed to figure paint methods? I'm struggling to find it...
>
> Thanks,
> brad
Previous Topic:How to add Legend to GEF Layer
Next Topic:draw2d Newbie question
Goto Forum:
  


Current Time: Mon Sep 23 03:48:03 GMT 2024

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

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

Back to the top