[[BackLinksMenu]] [[TicketQuery(summary=BASE_MODEL_PAGE_ELEMENTS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] = Analysis = == Overview == This task should provide a model for page elements (currently only frames). In this revision only a basic prototype is required. == Task requirements == * Revise the code for pages and frames and clean it up. * Modularize some things in the main.view if necessary. * Provide a class diagram(s) for the page elements and their components (styles, bounding rectangles, etc.). * Consider future design ideas and add them to the diagram - these include stickies and connectors and will be implemented in the next revision. * Review the existing unit tests and fix them if needed. == Task result == The result of this task should be: * source code * class diagram(s) * working unit tests == Implementation idea == * Review the existing source code. * Create the class diagram(s). * Refactor and clean up according to the diagram. * Run unit tests and fix problems if any. == Related == [wiki:BASE_BOOK_COMMONS_R0] == How to demo == * Show the class diagrams and explain them. * Show the source code related to page elements. * Run unit tests to demonstrate the model. = Design = * remove org.sophie2.base.model.book.Frame.getPageNumber() - it is not used anywhere and could be helpful only if it's used a lot. * remove org.sophie2.base.model.book.Frame.borderColor() - it is in org.sophie2.base.model.book.Frame.border() * org.sophie2.base.model.book.Frame.getResource() can be renamed or documented better to make it clear that it is only a "shortcut" to to something in the content. = Implementation = ^(Implementation results should be described and linked here (from the wiki or the repository))^ = Testing = = Comments = ^(Write comments for this or later revisions here.)