Changes between Version 19 and Version 20 of ANCHORING_MODE_COMMONS_R0


Ignore:
Timestamp:
09/23/09 14:20:12 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ANCHORING_MODE_COMMONS_R0

    v19 v20  
    3535= Design = 
    3636In order to provide the anchoring prototype the following changes are made: 
    37  * in org.sophie2.base.model.text package add interface Attachable which is used to determine which elements could be attached to other ones. 
    38  * in ImmHotText class add Map<Interval,Attachment> and change the constructors of the class(in order to initialize the new map) 
     37 * in org.sophie2.base.model.text package add interface Attachable which is used to determine which elements could be attached to other ones  
     38(the new interface is just a marker ). 
     39 * in ImmHotText class add ImmMap<Interval,Attachment> and change the constructors of the class(in order to initialize the new map) 
    3940 * in ImmHotText class add getter method getAttachmentMap that returns the map with the text's attachments. 
    40  * in org.sophie2.main.func.text.content.view package add a new enum AnchorMode. It holds the six modes of the anchoring. 
     41 * in org.sophie2.main.func.text.content.view package add a new enum AnchorMode. It holds the five modes of the anchoring. 
     42  * PAGE - this mode anchors the resource to the page 
     43  * FRAME - this mode anchors the resource to the frame (the visible result is when the frame is moved the anchored resource frame should also move). 
     44  * LINE - this mode anchors the resource to a line of the text. 
     45  * CHARACTER - this mode anchors the resource to a single character of the text (if the character changes it's position the anchored resource frame should  also do so). 
     46  * INLINE - this is the only one mode that treates the resource as a 'character' of the text - the resource frame is placed next to the place it has been anchored in the text frame. The other modes places the anchored frame outside the place it has been anchored to. 
    4147 * add a new package org.sophie2.base.model.text.anchoring 
    4248 * in org.sophie2.base.model.text.anchoring package add a new class AnchorText implements Attachment. It is used for anchoring in the text. This class contains : 
     
    4450   * final resourceRef : ResourceRefR4  
    4551   * constructor with two parameters and getters for the mode and for the resourceRef. 
    46  * in org.sophie2.main.app.commons.frame package add a new class AnchorView extends ElementView. It's idea is to visualize the anchor as an element in the frame. It's chiledView prop is of type FrameView. This class has public abstract ResourceH  getAnchoredModel() method. 
     52 * in org.sophie2.main.app.commons.frame package add a new class AnchorView extends ElementView. It's idea is to visualize the anchor as an element in the frame. It's childView prop is of type FrameView. This class has public abstract ResourceH  getAnchoredModel() method. 
    4753 * in org.sophie2.main.func.text.anchoring package add a new class AnchorTextView extends AnchorView that represents views of the anchors in the text. 
    48  * in HotTextResourceH add a new method public ImmList<ResourceRefR4> getChildren()(this class owns the anchored resources). 
     54 * the anchored resources of type ResourceRefR4 will be children of HotTextResourceH (they will be in stored in KEY_CHILDREN). 
    4955 * in FrameView add ListProp<AnchorView> that holds all the anchored views in the frame(with annotation Own) 
    5056 * in HotTextLogic class add ON_INSERT_ANCHOR that contains the logic of adding an anchor to the current text.