Changes between Version 8 and Version 9 of BASE_MODEL_PAGE_ELEMENTS_R0
- Timestamp:
- 01/10/09 21:25:36 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BASE_MODEL_PAGE_ELEMENTS_R0
v8 v9 39 39 * remove org.sophie2.base.model.book.Frame.getPageNumber() - it is not used anywhere and could be helpful only if it's used a lot. 40 40 * remove org.sophie2.base.model.book.Frame.borderColor() - it is in org.sophie2.base.model.book.Frame.border() 41 * move org.sophie2.base.model.book.Frame.contentLocation() and org.sophie2.base.model.book.Frame.contentSize() into org.sophie2.base.model.book.Frame.content()42 * if org.sophie2.base.model.book.Frame.bounds() is about content, alse move it into org.sophie2.base.model.book.Frame.content()43 * move org.sophie2.base.model.book.Frame.borderInsets() into org.sophie2.base.model.book.Frame.border(44 41 * org.sophie2.base.model.book.Frame.getResource() can be renamed or documented better to make it clear that it is only a "shortcut" to something in the content. 42 * move org.sophie2.base.model.book.Frame.borderInsets() into org.sophie2.base.model.book.Frame.border() 43 * rename org.sophie2.base.model.book.Frame.contentLocation() to org.sophie2.base.model.book.Frame.contentModeLocation() 44 * rename org.sophie2.base.model.book.Frame.contentSize() to org.sophie2.base.model.book.Frame.contentModeSize() 45 * rename org.sophie2.base.model.book.Frame.bounds() to org.sophie2.base.model.book.Frame.contentModeBounds() 45 46 * Diagram 46 47 * Page … … 50 51 * Future design ideas 51 52 * stickies: 52 Stickies will e ither extend frames with the new ability to be glued to a frame or be just regular frames with a special type of content.53 - In both ways apage will have a list with frames that are not stickies and a list with stickies.54 - In both ways there should be a property that points to the frame that the sticky is glued to. Since a frame position is currently calculated from content position, it is reasonable to stick the content to the frame and recalculate content position when the frame is moved.53 Stickies will extend frames with the new ability to be glued to a frame. 54 - A page will have a list with frames that are not stickies and a list with stickies. 55 - There should be a property that points to the frame that the sticky is glued to. The StickyFrame position should have the ability to recalculate its position automatically if the frame it is glued to is moved. Stickies may probably not glued to a frame, just put on the page like ordinary frames. 55 56 * connectors: 56 Only frames that have specific types of content connect to other frames. That's why a connector should be a property of a content that points to another frame (or content). Note that the sticky is again just property pointing to a frame (or content - the relation is 1 to 1, so it is up to the programmer) in a specific type of content, so designing stickies can be part of designing connectors.57 Only frames that have specific types of content connect to other frames. That's why a connector should be a property of a content that points to another frame. 57 58 * Tests 58 59 - Run tests in [source:trunk/sophie2-platform/modules/org.sophie2.base.model.book/src/test/java/org/sophie2/base/model/book] 59 60 = Implementation = 60 * Code refactored according to design. For properties moved from org.sophie2.base.model.book.Frame to org.sophie2.base.model.book.FrameContent get methods are added in org.sophie2.base.model.book.Frame: 61 Chagesets [changeset:1234] [changeset:1235] 62 * Class diagram of Page and its elements - Frames. 63 [[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/uml-Page-Frame-FrameContent.png)]] 64 * Future design ideas are described in the design and in the class diagram - StickyFrameContent and FrameContentConnector. 65 * After refactoring test are ok. 61 66 62 = Testing = 67 63