Package controller

Class AnnotationController

java.lang.Object
controller.AnnotationController
All Implemented Interfaces:
Controller, javafx.fxml.Initializable

public class AnnotationController extends Object implements Controller
The AnnotationController class manages the user interface for uploading, viewing, and annotating images in the application.
  • Field Details

    • uploadedImages

      public javafx.scene.layout.VBox uploadedImages
    • uploadImagesButton

      public javafx.scene.control.Button uploadImagesButton
    • selectedImagePane

      public javafx.scene.control.ScrollPane selectedImagePane
    • ExportButtonAll

      public javafx.scene.control.Button ExportButtonAll
    • ExportButton

      public javafx.scene.control.Button ExportButton
    • clearMarksButton

      public javafx.scene.control.Button clearMarksButton
    • helpButton

      public javafx.scene.control.Button helpButton
    • noTipButton

      public javafx.scene.control.Button noTipButton
  • Constructor Details

    • AnnotationController

      public AnnotationController()
  • Method Details

    • initialize

      public void initialize(URL location, ResourceBundle resources)
      Initializes the controller then sets up event handlers and initial states.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      location - The location used to resolve relative paths for the root object.
      resources - The resources used to localize the root object.
    • selectNextImage

      public void selectNextImage()
      Selects the next image in the list. If no next image is available, it prints a message.
    • selectPreviousImage

      public void selectPreviousImage()
      Selects the previous image in the list. If no previous image is available, it prints a message.
    • close

      public void close()
      Closes the controller and cleans up.
      Specified by:
      close in interface Controller
    • handleUploadFunctionality

      public void handleUploadFunctionality(javafx.event.ActionEvent actionEvent)
      Handles the upload functionality for selecting and displaying images.
      Parameters:
      actionEvent - The event triggered by the upload button.
    • clearAnnotations

      public void clearAnnotations()
      Removes any existing annotations from pane. Also deletes the annotation data of the selected image.
    • deletionfunctionality

      public void deletionfunctionality()
      Handles the deletion functionality for selected images. Removes related image data and annotation data from all locations. Updates currently displayed image and image status.
    • handleHelpButtonAction

      public void handleHelpButtonAction()
      Handles the action when the help button is clicked. Creates window with information on how to use this application.