Changes between Version 6 and Version 7 of TEXT_MODEL_REDESIGN
- Timestamp:
- 03/24/10 10:32:09 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TEXT_MODEL_REDESIGN
v6 v7 65 65 * In org.sophie2.base.model.text.smart add ImmText interface - the interface of the new sophie text. 66 66 * Hash getStyledHash() - Returns the styled hash of the text. 67 * HotTextInterval getLastChangedInterval() - Returns interval from the last change of the text(applying styles or replacing68 text).69 67 * CharSequence toSequence() - Gets the chars of the text as CharSequence. 70 68 * char getCharAt(int index) - Method for getting the char at a specific text's index. … … 79 77 * int getEnd() - Gets the end of the text. 80 78 * ImmText subText(HotTextInterval interval) - Creates a new sub text of the given text. 81 * In ImmHotText class remove all the existing fields and add ImmList<TextUnit> textUnits and 82 HotTextInterval lastChangedInterval(the first one holds the units of the sophie2 text and the second one holds 83 the interval that has been most recently changed by some of the functions of the text(applyStyle or replace)). 79 * In ImmHotText class remove all the existing fields and add ImmList<TextUnit> textUnits . 84 80 * Make the ImmHotText class implement the ImmText interface and implement the functions of the interface. 85 81 * Make HotStyleDef class implement Hashable and intern the HotStyleDef's values(add field with the used styles