[[BackLinksMenu]] [[TicketQuery(summary=TEXT_PARAGRAPH_ALIGN_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 == User should be able to specify alignment of specific paragraph directly into the paragraph HUD.[[BR]] Available values should be: * Left * Right * Center * Justified == Task requirements == * Provide to the user the ability to manage paragraph alignment. Add easy to use controls in the paragraph settings hud. * Implement left and justified alignment. Right and center alignment remain as optional. == Task result == * The result should be code. == Implementation idea == * Review [[wiki:TEXT_PARAGPRAPH_FORMAT_COMMONS_R0]] and don't get in to a conflict with implementation of this task. * Also review what is implemented at this point. * If there is a need review http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/StyleConstants.html * Add word break functionality in the layout to allow alignment manipulation. * Add white space extra handling in the layout to be used in justified alignment. For justified option the white spaces between words should be extended so that the lines are aligned both sides. * Add alignment badness calculation. == Related == [[wiki:TEXT_PARAGPRAPH_FORMAT_COMMONS_R0]][[BR]] [[wiki:TEXT_PARAGRAPH_SPACING_R0]][[BR]] [[wiki:TEXT_PARAGRAPH_STYLE_TEMPLATES_R0]][[BR]] [[wiki:TEXT_PARAGRAPH_CHAR_STYLE_R0]][[BR]] [[wiki:TEXT_PARAGRAPH_NEXT_STYLE_R0]][[BR]][[BR]] [[wiki:TEXT_HALO_MENU_R0]][[BR]] [[wiki:DETACHED_TEXT_FRAME_EDITOR_R0]] == How to demo == * Run the application * Create a new book and place text frame inside * Populate some lorem ipsum text inside with a number of paragraphs(lorem ipsum generator --> http://www.lipsum.com/) * Open the paragraph settings hud and manipulate alignment controls. = Design = ^(Describe your design here.)^ = Implementation = ^(Describe and link the implementation results here (from the wiki or the repository).)^ = Testing = ^(Place the testing results here.)^ = Comments = ^(Write comments for this or later revisions here.)