|
Re: FigureCanvas vs. ScrollPane: a question [message #172399 is a reply to message #172148] |
Thu, 17 March 2005 22:01 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Actually, FigureCanvas is heavyweight (an OS window), and ScrollPane is
lightweight (emulated).
Make your choice based on:
Use FigureCanvas if:
-you want the native appearance of the OS scrollbars
-you want optimized scrolling (using native bitblitting)
Use ScrollPane if:
- You need to nest the viewport inside a larger diagram
- You want to customize the scrollbar itself
"Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
news:d19ubp$jm2$1@www.eclipse.org...
>
> So, in the Draw2D API there are these two classes that can contain Figures
> and provide scrolling: FigureCanvas, and ScrollPane.
> FigureCanvas is lightweight (the O/S provides the scrollbars), and
> ScrollPane is heavyweight (Draw2D paints the scrollbars).
>
> Is the choice of which of these widgets to use purely aesthetic?
>
> Are there any features other than how the scrollbars are rendered that you
> get with using one versus using the other?
>
> For instance, are each of these classes taking equal advantage of clipping
> to the viewable area during repaints via DeferredUpdateManager, or is one
> of these classes "smarter" about clipping than the other?
>
> Thanks,
> Mark
>
>
|
|
|
Re: FigureCanvas vs. ScrollPane: a question [message #172407 is a reply to message #172399] |
Thu, 17 March 2005 22:16 |
Mark Powell Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Randy,
Thanks for the info...I always get lightweight and heavyweight mixed up :(
Are you also saying that by using ScrollPane one would not be taking
advantage of optimized scrolling via bitblitting? I'm thinking yes...
Thanks,
Mark
"Randy Hudson" <none@us.ibm.com> wrote in message
news:d1cunv$r0a$1@www.eclipse.org...
> Actually, FigureCanvas is heavyweight (an OS window), and ScrollPane is
> lightweight (emulated).
> Make your choice based on:
>
> Use FigureCanvas if:
> -you want the native appearance of the OS scrollbars
> -you want optimized scrolling (using native bitblitting)
>
> Use ScrollPane if:
> - You need to nest the viewport inside a larger diagram
> - You want to customize the scrollbar itself
>
> "Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
> news:d19ubp$jm2$1@www.eclipse.org...
>>
>> So, in the Draw2D API there are these two classes that can contain
>> Figures and provide scrolling: FigureCanvas, and ScrollPane.
>> FigureCanvas is lightweight (the O/S provides the scrollbars), and
>> ScrollPane is heavyweight (Draw2D paints the scrollbars).
>>
>> Is the choice of which of these widgets to use purely aesthetic?
>>
>> Are there any features other than how the scrollbars are rendered that
>> you get with using one versus using the other?
>>
>> For instance, are each of these classes taking equal advantage of
>> clipping to the viewable area during repaints via DeferredUpdateManager,
>> or is one of these classes "smarter" about clipping than the other?
>>
>> Thanks,
>> Mark
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02667 seconds