Class AssetTextMarks

java.lang.Object
de.swa.fuh.qrefinement.ui.datamodel.AssetTextMarks

public class AssetTextMarks
extends java.lang.Object
class containing a number of references to text marks that represent a relevance mark for a text file each. Exactly one instance of this class should exist for each text file in the set of assets.
Author:
Nicolas Boch
  • Constructor Summary

    Constructors 
    Constructor Description
    AssetTextMarks​(java.io.File f)
    constructs a new instance of the class setting the file reference to the text file the new instance is representing relevance marks for
    AssetTextMarks​(java.util.Vector<TextMark> r)  
  • Method Summary

    Modifier and Type Method Description
    void addTextMark​(TextMark mark)
    adds a relevance marks to the vector of relevance marks and informs the object that manages observers about this change
    void changeBold​(int index)  
    void changeBold​(TextMark mark)  
    void changePosition​(int index, int start, int end)  
    void changePosition​(TextMark mark, int start, int end)  
    void clear()  
    void deleteTextMark​(int index)
    deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this change
    void deleteTextMark​(TextMark mark)  
    java.util.Vector<TextMark> getTextMarks()
    returns the Vector of relevance marks

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetTextMarks

      public AssetTextMarks​(java.util.Vector<TextMark> r)
    • AssetTextMarks

      public AssetTextMarks​(java.io.File f)
      constructs a new instance of the class setting the file reference to the text file the new instance is representing relevance marks for
      Parameters:
      f - a File object of a text file
  • Method Details

    • getTextMarks

      public java.util.Vector<TextMark> getTextMarks()
      returns the Vector of relevance marks
    • addTextMark

      public void addTextMark​(TextMark mark)
      adds a relevance marks to the vector of relevance marks and informs the object that manages observers about this change
      Parameters:
      mark - the text mark to be added to the Vector
    • deleteTextMark

      public void deleteTextMark​(int index)
      deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this change
      Parameters:
      index - the index of the text mark to be removed in the vector of rectangles
    • deleteTextMark

      public void deleteTextMark​(TextMark mark)
    • changeBold

      public void changeBold​(int index)
    • changeBold

      public void changeBold​(TextMark mark)
    • changePosition

      public void changePosition​(int index, int start, int end)
    • changePosition

      public void changePosition​(TextMark mark, int start, int end)
    • clear

      public void clear()