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.ImageViewimageContainerjavafx.scene.text.TextimageMetadataFieldjavafx.scene.text.TextimageTagsFieldjavafx.scene.text.TextimageTitleFieldFields 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 voidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates content on the page based on current clicked image id inDataExchangevoidopenPopUpImage(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and display the clicked image in max sizevoidopenPopUpMetadata(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:
initializein 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-
-