Skip to main content



      Home
Home » Eclipse Projects » GEF » Getting the clipping region of a pane in a ScrollPane
Getting the clipping region of a pane in a ScrollPane [message #79664] Thu, 15 May 2003 15:07
Eclipse UserFriend
Originally posted by: bgrieder.nospam.thanks

Hi,

I have a FreeformLayer pane insterted in a ScrollPane.

How do I know which is the part of the pane (i.e the Rectangle) which is
displayed (when the pane is larger than the ScrollPane)?

Thanks for your help

bruno
Re: Getting the clipping region of a pane in a ScrollPane [message #79679 is a reply to message #79664] Thu, 15 May 2003 13:36 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Why are you using a FreeformLayer instead of a plain figure? A
FreeformLayer should be inside a freeformviewport.

try:
Rectangle r = freeformlayer.getBounds().getCopy();
freeformviewport.translatetoParent(r);
r.insersect(freeformviewport.getClientArea());

"Bruno Grieder" <bgrieder@nospam.thanks> wrote in message
news:ba0hg3$otb$1@rogue.oti.com...
> Hi,
>
> I have a FreeformLayer pane insterted in a ScrollPane.
>
> How do I know which is the part of the pane (i.e the Rectangle) which is
> displayed (when the pane is larger than the ScrollPane)?
>
> Thanks for your help
>
> bruno
>
Previous Topic:PrinterGraphics - scale text
Next Topic:Copy/Paste retarget actions...
Goto Forum:
  


Current Time: Wed Jul 23 05:19:16 EDT 2025

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

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

Back to the top