Skip to main content



      Home
Home » Eclipse Projects » GEF » Page view
Page view [message #108155] Mon, 08 December 2003 04:10 Go to next message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

Hi all.
As everything under the sun is already invented :) I would like to know if
anyone can point me somewhere I can read about creating page view.

I.e. I have a paper page (i.e. A4) I want to display:
1. I want to have it centered on the screen (if it is smaller than the size
of the screen)
2. I want to have that fancy page display - shadow, etc.

If there is no hints, than I need some help centering the figure on the
screen - I belive, drawing is pretty straight-forward.

Thanks in advance,
Eugene
Re: Page view [message #108198 is a reply to message #108155] Mon, 08 December 2003 10:13 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I have not done this before.

Inside a viewport, you could add a figure which contains another figure.
The outer figure is using some custom layout you write which will center the
figure based on its preferredSize. As soon as the figure grows larger than
the available space, "centering" won't actually do anything because the
wrapper figure and the page figure will be the same size at that point.

Basically, viewport stretches whatever is inside to fill the available
space.

"Eugene Ostroukhov" <eostroukhov@hotmail.com> wrote in message
news:br1f0f$a3u$1@eclipse.org...
> Hi all.
> As everything under the sun is already invented :) I would like to know if
> anyone can point me somewhere I can read about creating page view.
>
> I.e. I have a paper page (i.e. A4) I want to display:
> 1. I want to have it centered on the screen (if it is smaller than the
size
> of the screen)
> 2. I want to have that fancy page display - shadow, etc.
>
> If there is no hints, than I need some help centering the figure on the
> screen - I belive, drawing is pretty straight-forward.
>
> Thanks in advance,
> Eugene
>
>
Previous Topic:Draw2d standalone
Next Topic:Programmatically adding figures to screen
Goto Forum:
  


Current Time: Fri Apr 25 01:41:44 EDT 2025

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

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

Back to the top