Package controller
Class AnnotationController
java.lang.Object
controller.AnnotationController
- All Implemented Interfaces:
Controller
,javafx.fxml.Initializable
The AnnotationController class manages the user interface for
uploading, viewing, and annotating images in the application.
-
Field Summary
Modifier and TypeFieldDescriptionjavafx.scene.control.Button
javafx.scene.control.Button
javafx.scene.control.Button
javafx.scene.control.Button
javafx.scene.control.Button
javafx.scene.control.ScrollPane
javafx.scene.layout.VBox
javafx.scene.control.Button
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes any existing annotations from pane.void
close()
Closes the controller and cleans up.void
Handles the deletion functionality for selected images.void
Handles the action when the help button is clicked.void
handleUploadFunctionality
(javafx.event.ActionEvent actionEvent) Handles the upload functionality for selecting and displaying images.void
initialize
(URL location, ResourceBundle resources) Initializes the controller then sets up event handlers and initial states.void
Selects the next image in the list.void
Selects the previous image in the list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface controller.Controller
injectStatusLabel, registerController, unregisterController
-
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
Initializes the controller then sets up event handlers and initial states.- Specified by:
initialize
in interfacejavafx.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 interfaceController
-
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.
-