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 for
    AssetRectangles​(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 change
    void clear()
    deletes all relevance marks from the vector of relevance marks and informs the object that manages observers about this change
    void deleteRectangle​(int index)
    deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this change
    void deleteRectangle​(Rectangle rect)
    deletes a relevance marks from the vector of relevance marks and informs the object that manages observers about this change
    java.util.Vector<Rectangle> getRectangles()
    returns the Vector of relevance marks
    void setThick​(int index)
    emphasizes one rectangle in the Vector of rectangles by increasing the size of its border
    void setThick​(Rectangle rect)
    emphasizes one rectangle in the Vector of rectangles by increasing the size of its border

    Methods inherited from class java.lang.Object

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

    • AssetRectangles

      public AssetRectangles​(java.util.Vector<Rectangle> r)
    • 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

      public java.util.Vector<Rectangle> getRectangles()
      returns the Vector of relevance marks
    • addRectangle

      public void addRectangle​(Rectangle rect)
      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

      public void deleteRectangle​(Rectangle rect)
      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

      public void setThick​(Rectangle rect)
      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