[[BackLinksMenu]] [[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|)]] = Analysis = == Overview == Image content is a content of a frame representing images. You should be able to obtain the same information you are able to obtain for any other content/resource plus the size of the image. == Task requirements == * You should create class !ImageContent extending org.sophie2.base.model.book.!FrameContent. * You should create class !ImageResource extending org.sophie2.base.model.book.resource.!BookResource. !ImageResource should have method for getting the image size. == Task result == The result of this task should be source code. == Implementation idea == * Create class !ImageContent which is concrete implementation of org.sophie2.base.model.book.!FrameContent for images. * !ImageContent should override mainResource() and return Prop. * Create class !ImageResource which is concrete implementation of org.sophie2.base.model.book.resource.!BookResource for image resources. * !ImageResource should have method size() for retrieving the image size. == Related == * [wiki:UNPLANNED_BASE_MODEL_FRAME_CONTENT_R0][[BR]] * [wiki:BASE_RESOURCE_COMMONS_R0] == How to demo == Create a frame with image resource. Check if the resource is set correctly and check if the information about the resource is correct. Try changing the resource and check again the same things. = Design = = 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.)