Changes between Version 19 and Version 20 of PAGE_PREVIEW_PALETTE_R0
- Timestamp:
- 06/12/09 21:04:16 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PAGE_PREVIEW_PALETTE_R0
v19 v20 35 35 36 36 * Most of the functionality is in place. 37 * We need to add a ReadPageWorkArea and a SimpleSceneVisual property in PagePreviewPalette. The ReadPageWorkArea should be used to set the current page as the page changes so a Scene object can be extracted from it. The Scene object should be set in the SimpleSceneVisual object to initiliaze it. In PagePreviewPaletteCellRenderer a java.awt.Component is obtained from the SimpleSceneVisual and S wingUtilities is used to draw it to the graphic in the paint method of the PageThumbnail - a JPanel subclass of PagePreviewPaletteCellRenderer used to draw a JList element. Before the drawing the Graphics object is scaled by the ratio of thumbwidth/pagewidth.37 * We need to add a ReadPageWorkArea and a SimpleSceneVisual property in PagePreviewPalette. The ReadPageWorkArea should be used to set the current page as the page changes so a Scene object can be extracted from it. The Scene object should be set in the SimpleSceneVisual object to initiliaze it. In PagePreviewPaletteCellRenderer a java.awt.Component is obtained from the SimpleSceneVisual and SceneHelper is used to draw it to the graphic. Before the drawing the Graphics object is scaled by the ratio of thumbwidth/pagewidth. 38 38 * Functionality for setting the selected thumbnail as current page is already in place. 39 39 * Functionality for deleting a page is already in place.