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 forAssetTextMarks(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 changevoid
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 changevoid
deleteTextMark(TextMark mark)
java.util.Vector<TextMark>
getTextMarks()
returns the Vector of relevance marks
-
Constructor Details
-
AssetTextMarks
-
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
returns the Vector of relevance marks -
addTextMark
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
-
changeBold
public void changeBold(int index) -
changeBold
-
changePosition
public void changePosition(int index, int start, int end) -
changePosition
-
clear
public void clear()
-