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
FieldsModifier and TypeFieldDescriptionjavafx.scene.control.Buttonjavafx.scene.control.Buttonjavafx.scene.control.Buttonjavafx.scene.control.Buttonjavafx.scene.control.Buttonjavafx.scene.control.ScrollPanejavafx.scene.layout.VBoxjavafx.scene.control.Button -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves any existing annotations from pane.voidclose()Closes the controller and cleans up.voidHandles the deletion functionality for selected images.voidHandles the action when the help button is clicked.voidhandleUploadFunctionality(javafx.event.ActionEvent actionEvent) Handles the upload functionality for selecting and displaying images.voidinitialize(URL location, ResourceBundle resources) Initializes the controller then sets up event handlers and initial states.voidSelects the next image in the list.voidSelects the previous image in the list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initializein 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:
closein 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.
-