82 | | * Create class !PresentationWindow in {{{org.sophie2.app.commons.fullscreen}}} - the window of the current document when is in !ScreenMode.PRESENTATION. It is implemented as Dialog. |
83 | | * Create class PresentationWindowInput which is the dialog input. |
| 82 | * The contents of the Global Container's Frame are cleared and only the swing component of current document window is added. |
| 83 | * Current book's window: |
| 84 | * Displays the book zoomed to fit the screen size (preserving the aspect ratio). Previous zoom level is saved so it will be restored when returning from presentation mode. |
| 85 | * Displays the book centered: |
| 86 | * {{{offsetX = (zoom * pageSize.width - screenSize.width) / 2;}}}, analogically offsetY. |
| 87 | * set {{{wantedViewRect}}} of {{{workArea}}}'s {{{sceneVisual}}} to a rectangle (offsetX, offsetY, screen width, screen height). This also makes the whole area around the page to be gray. |
| 88 | * Displays the page work area's swing component instead of the scroll area, because scrollbars should be hidden. |