| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=TASK_NAME_HERE, 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|)]] |
| 4 | |
| 5 | |
| 6 | |
| 7 | = Analysis = |
| 8 | ^(The purpose of the analysis is to give as much as possible of the needed information for designing and implementing the task.)^ |
| 9 | |
| 10 | == Overview == |
| 11 | Image content should represent images as frame content. You should be able to get the size of an image. |
| 12 | |
| 13 | == Task requirements == |
| 14 | You should create class ImageContent extending FrameContent. |
| 15 | You should create class ImageResource extending BookResource. ImageResource should have method for |
| 16 | getting the image resource size. |
| 17 | |
| 18 | == Task result == |
| 19 | The result of this task should be source code. |
| 20 | |
| 21 | == Implementation idea == |
| 22 | Create class ImageContent which is concrete implementation of FrameContent for images. ImageContent must override mainResource() and returns a Prop<ImageResource>. |
| 23 | Create class ImageResource which is concrete implementation of BookResource for image resources and have method size() for retrieving the image size. |
| 24 | |
| 25 | == Related == |
| 26 | http://sophie2.org/trac/wiki/UNPLANNED_BASE_MODEL_FRAME_CONTENT_R0 |
| 27 | http://sophie2.org/trac/wiki/BASE_RESOURCE_COMMONS_R0 |
| 28 | |
| 29 | == How to demo == |
| 30 | Create a frame with image resource. |
| 31 | Check if the resource is set correctly and check if the information about the resource is correct. Try changing the resource and |
| 32 | check again the same things. |
| 33 | |
| 34 | = Design = |
| 35 | |
| 36 | = Implementation = |
| 37 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 38 | |
| 39 | = Testing = |
| 40 | |
| 41 | = Comments = |
| 42 | ^(Write comments for this or later revisions here.) |