Changes between Version 36 and Version 37 of TEXT_AUTO_CHAIN_BEHAVIOUR_R1


Ignore:
Timestamp:
09/28/09 12:54:24 (16 years ago)
Author:
boyan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_AUTO_CHAIN_BEHAVIOUR_R1

    v36 v37  
    6666At 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: 
    6767 
    68 ^Here goes the screenshot of the HUD. 
     68[[Image(TextChainHud.png)]] 
    6969 
    7070For the needs of this task, the HotLayout class will be extended with two methods: 
    7171 * 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). 
    7272 * 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 
     74Since deleting pages is currently quite buggy recomputing underflowed text might not be implemented at this iteration. 
     75 
     76Here'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 []. 
    7377 
    7478= Implementation =