[[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. * Image resources are resources for images. * Image resources have the same information as any other resources plus specific information about the images they are representing. * There should be drag and drop support, so images can be dropped onto frame so image content is created automatically from them. * There should be support for creating a frame with image content by choosing an image file. * Images should support cropping, resizing, zooming. == Task requirements == * Define basic image content. * Define basic image resource. * You should be able to retrieve the size of an image. == 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.)