Class ViewImagePageController

  • All Implemented Interfaces:
    javafx.fxml.Initializable

    public class ViewImagePageController
    extends java.lang.Object
    implements javafx.fxml.Initializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String FILE_NOT_FOUND  
      private ImageData image  
      private javafx.scene.text.Text imageName  
      private javafx.scene.image.ImageView imageView  
      (package private) org.slf4j.Logger logger  
      private javafx.scene.text.Text tags  
      private javafx.scene.text.TextFlow textFlow  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void btnAddImage()
      This method handles the add image button, it takes you to the add Image page.
      private void btnDelete()
      This method handles the delete button, it deletes the viewed image.
      private void btnEditFilename()
      This method handles the edit Filename button, it changes the name of a file.
      void btnEditTags()
      This method handles the edit Tags button.
      private void btnGallery()
      This method handles the gallery button, it takes the user to the gallery page.
      private void btnHome()
      This method handles the home button it takes the user to the homepage.
      javafx.scene.image.ImageView getImageView()
      Getter for ImageView.
      void initialize​(java.net.URL url, java.util.ResourceBundle resourceBundle)  
      void loadViewImage​(java.lang.String path)  
      void setImage​(java.lang.String path)
      This sets the image you are viewing, it uses a getter to get the correct image.
      void setImageView​(javafx.scene.image.ImageView imageView)
      Setter for ImageView.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • imageView

        private javafx.scene.image.ImageView imageView
      • imageName

        private javafx.scene.text.Text imageName
      • tags

        private javafx.scene.text.Text tags
      • logger

        org.slf4j.Logger logger
      • textFlow

        private javafx.scene.text.TextFlow textFlow
    • Constructor Detail

      • ViewImagePageController

        public ViewImagePageController()
    • Method Detail

      • initialize

        public void initialize​(java.net.URL url,
                               java.util.ResourceBundle resourceBundle)
        Specified by:
        initialize in interface javafx.fxml.Initializable
      • setImage

        public void setImage​(java.lang.String path)
        This sets the image you are viewing, it uses a getter to get the correct image.
        Parameters:
        path - This is the image path
      • btnHome

        private void btnHome()
        This method handles the home button it takes the user to the homepage.
      • btnGallery

        private void btnGallery()
        This method handles the gallery button, it takes the user to the gallery page.
      • btnAddImage

        private void btnAddImage()
        This method handles the add image button, it takes you to the add Image page.
      • btnDelete

        private void btnDelete()
        This method handles the delete button, it deletes the viewed image.
      • btnEditFilename

        private void btnEditFilename()
        This method handles the edit Filename button, it changes the name of a file.
      • btnEditTags

        public void btnEditTags()
        This method handles the edit Tags button. It takes a list of tags, and sets them as the new tags.
      • getImageView

        public javafx.scene.image.ImageView getImageView()
        Getter for ImageView.
        Returns:
        ImageView, this shows an image within JavaFX
      • setImageView

        public void setImageView​(javafx.scene.image.ImageView imageView)
        Setter for ImageView.
        Parameters:
        imageView - This shows an image within JavaFX
      • loadViewImage

        public void loadViewImage​(java.lang.String path)