100 | | 1. Removed the call to setBorder from the setup() method of BookDocumentWindow.swingFrameSync(). This change should be checked on Windows and Linux. It removed the border as requested (and fixed a Mac issue with no title bar) |
| 100 | 1. Remove the border from the page work area |
| 101 | |
| 102 | Removed the call to setBorder from the setup() method of BookDocumentWindow.swingFrameSync(). This change should be checked on Windows and Linux. It removed the border as requested (and fixed a Mac issue with no title bar) |
| 103 | |
| 104 | 2. Removing the iconified book from the desktop |
| 105 | |
| 106 | Added show() to DefaultDocumentWindow which causes the window to become active and visible. When the window is iconified, use userActs to disable the current book. In BookLogic, changed the logic to show the window when a book is selected, causing the book window to show. |
| 107 | |
| 108 | 3. Center the page on the page work area |
| 109 | |
| 110 | The design was wrong. SimpleSceneVisual adjusts the actual view rect into negative coordinates, which are then offset by SceneToSwing. So in order to properly center everything in the page work area, I adjusted actualViewRect to determine an x and y offset based on the deltas between the actual view rect and the minimal view rect. This offset is then subtracted from the origin, much like the padding is, and causes the page, frames, halos, etc to be centered on the page work area. |
| 111 | |
| 112 | 4. Change the page work area to consider the size of the book window as well as the page |
| 113 | |
| 114 | Added minimalViewRect to SceneVisual which is set by the page work area. Added an component listener to DefaultDocumentWindow and a windowSize property. When the event listener is notified that the window was resized, set the windowSize property. |
| 115 | |
| 116 | Added a resourceProperty syncWindowSize to PageWorkArea which relies on its BookView windowSize property, if the parent is indeed a BookDocumentWindow. Set the page work area's scene's minimalVIewRect to the content area of the scroll area, which causes the page work area to size properly as well as center on the window. |
| 117 | |
| 118 | 5. Define minimum size of the book window, so that scroll bars for the controls (bottom book panel) do not appear |