Package NTNU.IDATT1002.controllers
Class ViewImage
java.lang.Object
NTNU.IDATT1002.controllers.NavBarController
NTNU.IDATT1002.controllers.ViewImage
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ViewImage extends NavBarController implements javafx.fxml.Initializable
Controls the buttons and changeable elements on view_.fxml,
a page where get a more detailed view of a image
- Version:
- 1.0 22.03.2020
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.image.ImageView
imageContainer
javafx.scene.text.Text
imageMetadataField
javafx.scene.text.Text
imageTagsField
javafx.scene.text.Text
imageTitleField
Fields inherited from class NTNU.IDATT1002.controllers.NavBarController
navBarAlbums, navBarExplore, navBarLogo, navBarLogOut, navBarMap, navBarSearch, navBarSearchBtn, navBarUpload, returnButton
-
Constructor Summary
Constructors Constructor Description ViewImage()
-
Method Summary
Modifier and Type Method Description void
initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)
Generates content on the page based on current clicked image id inDataExchange
void
openPopUpImage(javafx.scene.input.MouseEvent mouseEvent)
Makes a new stage and display the clicked image in max sizevoid
openPopUpMetadata(javafx.scene.input.MouseEvent mouseEvent)
Makes a new stage and displays ALL metadata of the clicked imageMethods inherited from class NTNU.IDATT1002.controllers.NavBarController
doBeforePageExit, enterSearch, goToPrevious, logOut, search, switchToAlbums, switchToExplore, switchToMain, switchToMap, switchToSearch, switchToUpload
-
Field Details
-
imageContainer
public javafx.scene.image.ImageView imageContainer -
imageTagsField
public javafx.scene.text.Text imageTagsField -
imageTitleField
public javafx.scene.text.Text imageTitleField -
imageMetadataField
public javafx.scene.text.Text imageMetadataField
-
-
Constructor Details
-
ViewImage
public ViewImage()
-
-
Method Details
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates content on the page based on current clicked image id inDataExchange
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
openPopUpImage
public void openPopUpImage(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and display the clicked image in max size- Parameters:
mouseEvent
-
-
openPopUpMetadata
public void openPopUpMetadata(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and displays ALL metadata of the clicked image- Parameters:
mouseEvent
-
-