Skip to content
Snippets Groups Projects

New explore

Merged Stian Fjæran Mogen requested to merge new_explore into dev
All threads resolved!
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
@@ -3,6 +3,7 @@ package NTNU.IDATT1002.controllers;
import NTNU.IDATT1002.App;
import NTNU.IDATT1002.models.Tag;
import NTNU.IDATT1002.service.ImageService;
import NTNU.IDATT1002.service.TagService;
import NTNU.IDATT1002.utils.ImageUtil;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
@@ -92,9 +93,7 @@ public class Explore implements Initializable {
//Text describing the picture's title and tag
Text title = new Text("TITLE:");
title.setFont(Font.font("System Bold", 24));
String tagsAsString = images.get(i).getTags().stream()
.map(Tag::getName)
.collect(Collectors.joining(" "));
String tagsAsString = TagService.getTagsAsString(images.get(i).getTags());
Text tag = new Text("TAGS:\n " + tagsAsString);
tag.setFont(Font.font("System Bold", 18));
Loading