Changes between Version 36 and Version 37 of TEXT_AUTO_CHAIN_BEHAVIOUR_R1
- Timestamp:
- 09/28/09 12:54:24 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TEXT_AUTO_CHAIN_BEHAVIOUR_R1
v36 v37 66 66 At this iteration, auto chaining will not be fully automatic. A button will be added in the TextChainHud that will reflow the text. That is, when the user clicks it, it will automatically add new pages and frames and chain them to the currently selected one until the text fits in the flow. Since chaining will not be really "automatic", the KEY_CHAIN_MODE in HeadTextFrameR4 will not be set now. Chaining mode will be used when the chaining becomes truly automatic. Here's how the initial version of the hud will look like: 67 67 68 ^Here goes the screenshot of the HUD. 68 [[Image(TextChainHud.png)]] 69 69 70 70 For the needs of this task, the HotLayout class will be extended with two methods: 71 71 * isTextConsumed(ImmHotText text) will return a boolean value indicating whether the text fits in the areas of the current flow or not (needed for overflowing). 72 72 * getNeededAreasCount(ImmHotText text) will return an integer value indicating how many areas of the same size as the first one are needed for laying out the whole text (needed for underflowing). 73 74 Since deleting pages is currently quite buggy recomputing underflowed text might not be implemented at this iteration. 75 76 Here's an updated version of the test for chaining: [source:/branches/private/boyan/auto-chaining/sophie2-platform/modules/org.sophie2.dev/src/test/java/org/sophie2/dev/author/TextChainingSystemTest.java TextChainingSystemTest.java], commited at revision []. 73 77 74 78 = Implementation =