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. |
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. |