[[BackLinksMenu]] [[TicketQuery(summary=FRAME_FILLING_PATTERN_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 == When the fill style is "pattern", the background of the frame or the page becomes another image which is repeated. This revision only requires selecting an image and repeating it. In future revisions of this task, it would be nice to allow pattern rotation, resizing, and offset as well as selecting an image through drag and drop; because of these settings it will be necessary to have a pattern settings window. == Task requirements == * If the user chooses the PATTERN fill type in the frame or page background & border HUD, a "pattern settings" button should be shown instead of the color square. * The default pattern fill is empty. * When the pattern settings button is clicked, it brings up a file dialogue prompting the user to select an image for the pattern. Clicking this when a pattern has already been set replaces the images with a new one. == Task result == The result of this task is source code. == Implementation idea == Use the java.awt.Graphics2D methods to show the image pattern. == Related == [wiki:FRAME_APPEARANCE_HALO_AND_HUD_R0] [[BR]] [wiki:FRAME_FILLING_GRADIENT_R0] [[BR]] [wiki:FRAME_FILLING_SOLID_R0] [[BR]] [wiki:FRAME_FILLING_IMAGE_R0] [[BR]] == How to demo == * Make a new book, add an image to the resources. Open page's border & fill HUD, choose pattern fill, set the image in the resources as the pattern image, change settings to demonstrated possibilities. Then add a text frame to a page. Open frame's border & fill HUD, choose pattern fill, set the image in the resources as the pattern image, change settings to something different from what is used on the page. = Design = = Implementation = ^(Implementation results should be described and linked here (from the wiki or the repository))^ = Testing = = Comments = FRAME_FILLING_PATTERN_R0