Package util

Class AnnotationData

java.lang.Object
util.AnnotationData

public class AnnotationData extends Object
Annotation Data handler responsible for collecting and saving the annotated data Singleton because we only want one instance of this, at a time.
  • Method Details

    • addAnnotation

      public void addAnnotation(String path, double middlePointX, double middlePointY, double boundingBoxWidth, double boundingBoxHeight)
    • getAnnotation

      public javafx.scene.shape.Rectangle getAnnotation(String path)
    • deleteAnnotation

      public boolean deleteAnnotation(String path)
      Function to delete the Annotation of one Image
      Parameters:
      path - Image path (Key for the Map)
      Returns:
    • getInstance

      public static AnnotationData getInstance()
    • getAnnotations

      public Map<String,AnnotationData.PublicAnnotation> getAnnotations()
    • getAnnotationEntry

      public AnnotationData.PublicAnnotation getAnnotationEntry(String path)