Class AssetRectangles
java.lang.Object
de.swa.fuh.qrefinement.ui.datamodel.AssetRectangles
public class AssetRectangles
extends java.lang.Object
class containing a number of references to rectangles that represent a relevance mark for an image file each. Exactly one instance of this class should exist for each image file in the set of assets.
- Author:
- Nicolas Boch
-
Constructor Summary
Constructors Constructor Description AssetRectangles(java.io.File f)
constructs a new instance of the class setting the file reference to the image file the new instance is representing relevance marks forAssetRectangles(java.util.Vector<Rectangle> r)
-
Method Summary
Modifier and Type Method Description void
addRectangle(Rectangle rect)
adds a relevance marks to the vector of relevance marks and informs the object that manages observers about this changevoid
clear()
deletes all relevance marks from the vector of relevance marks and informs the object that manages observers about this changevoid
deleteRectangle(int index)
deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this changevoid
deleteRectangle(Rectangle rect)
deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this changejava.util.Vector<Rectangle>
getRectangles()
returns the Vector of relevance marksvoid
setThick(int index)
emphasizes one rectangle in the Vector of rectangles by increasing the size of its bordervoid
setThick(Rectangle rect)
emphasizes one rectangle in the Vector of rectangles by increasing the size of its border
-
Constructor Details
-
AssetRectangles
-
AssetRectangles
public AssetRectangles(java.io.File f)constructs a new instance of the class setting the file reference to the image file the new instance is representing relevance marks for- Parameters:
f
- a File object of an image file
-
-
Method Details
-
getRectangles
returns the Vector of relevance marks -
addRectangle
adds a relevance marks to the vector of relevance marks and informs the object that manages observers about this change- Parameters:
rect
- the rectangle to be added to the vector
-
deleteRectangle
deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this change- Parameters:
rect
- the rectangle to be removed from the vector
-
deleteRectangle
public void deleteRectangle(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 rectangle to be removed in the vector of rectangles
-
clear
public void clear()deletes all relevance marks from the vector of relevance marks and informs the object that manages observers about this change -
setThick
emphasizes one rectangle in the Vector of rectangles by increasing the size of its border- Parameters:
rect
- the rectangle to be emphasized
-
setThick
public void setThick(int index)emphasizes one rectangle in the Vector of rectangles by increasing the size of its border- Parameters:
index
- the index of the rectangle to be emphasized in the Vector of all rectangles
-