Changes between Version 12 and Version 13 of WRAPPING_TEXT_RENDERING_R1


Ignore:
Timestamp:
06/09/09 15:58:10 (16 years ago)
Author:
vlado
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WRAPPING_TEXT_RENDERING_R1

    v12 v13  
    3636 
    3737= Design = 
    38  * Modify HotTextSceneElementImpl.testLayout() method to: 
     38 * Modify HotTextSceneElementImpl.textLayout() method to: 
    3939  * Consider if the current Frame has single selection, so that wrapping is disabled (the user should be able to edit the selected frame without wrapping). 
    40   * Get all present FrameViews in the PageWorkArea. For each of them: 
    41    * Convert its space to the space of the current Frame. 
    42    * Get its ImmArea relative to the space of the current Frame. 
    43    * Subtract the current Frame's area from its ImmArea. 
     40  * Calculate the layout area: 
     41   * Get the areas of all FrameViews with z-order higher than the current Frame 
     42   * Subtract these areas from the current Frame's area. 
     43   * Note: For correct calculations the space of each FrameView should be converted to the space of the current Frame. 
    4444  * Use the calculated ImmArea (possibly containing a complex shape) as a parameter to HotTextLayout.layout 
    4545 * Correct EdgeKind.OPEN_LINE and EdgeKind.SEGMENT to consider the case of more than one segment on a line. 
    4646  * BasePoint calculation should be corrected 
    47  * Testing: Use the [http://www.sophie2.org/trac/browser/branches/private/nenko/nenko2/modules/org.sophie2.author/src/test/java/org/sophie2/author/TextDemo.java TextDemo] and try: 
    48   * Type some text into the first frame. 
    49   * Select the second frame -> the text in the first wraps around. 
    50   * Move and/or rotate the second frame -> the text in the first wraps around. 
    51  
     47 * Testing: 
     48  * Use the [http://www.sophie2.org/trac/browser/branches/private/nenko/nenko2/modules/org.sophie2.author/src/test/java/org/sophie2/author/TextDemo.java TextDemo] and try: 
     49   * Type some text into the first frame. 
     50   * Select the second frame -> the text in the first wraps around. 
     51   * Move and/or rotate the second frame -> the text in the first wraps around. 
     52  * Unit test: 
     53   * LayoutBuilderTest.testLayout added 
     54     [3291] 
     55   * All tests in LayoutBuilderTest can be used to check this task. 
    5256= Implementation = 
    5357Code added to the clean private branch nenko/nenko2