Getting the clipping region of a pane in a ScrollPane [message #79664] |
Thu, 15 May 2003 15:07 |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.15318 seconds