Version 8 (modified by vlado, 16 years ago) (diff) |
---|
Analysis
Overview
User should be able to specify alignment of specific paragraph directly into the paragraph HUD.
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 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
TEXT_PARAGPRAPH_FORMAT_COMMONS_R0
TEXT_PARAGRAPH_SPACING_R0
TEXT_PARAGRAPH_STYLE_TEMPLATES_R0
TEXT_PARAGRAPH_CHAR_STYLE_R0
TEXT_PARAGRAPH_NEXT_STYLE_R0
TEXT_HALO_MENU_R0
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.)