New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags collation #76
Tags collation #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this implementation right now. Might want to work with zimu on some parts as he will definitely need a list of tags for his feature afterwards. So it might make more sense to have a TagManager outside of statistics instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just require some minor changes, mostly dealing with magic literals.
|
||
//============= Tag Data ==================================== | ||
|
||
List<TagWithCount> getTagsWithCountList(ObservableList<Meme> memeList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List<TagWithCount> getTagsWithCountList(ObservableList<Meme> memeList); | |
List<TagWithCount> getTagsWithCountList(List<Meme> memeList); |
/** | ||
* Get {@code TagWithCount} in PriorityQueue from a {@code ReadOnlyMemeBook}. | ||
*/ | ||
public PriorityQueue<TagWithCount> getTagsInOrderOfCounts(ObservableList<Meme> memeList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public PriorityQueue<TagWithCount> getTagsInOrderOfCounts(ObservableList<Meme> memeList) { | |
public PriorityQueue<TagWithCount> getTagsInOrderOfCounts(List<Meme> memeList) { |
update comments accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method takes in an ObservableList of Memes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking could just make it List instead since it doesn't necessarily have to be an observable list.
Closes #81 Add tag collation feature and a visual view in the form of PieChart.
Build a TagManager that parses a given MemeBook for the tags.
Adds a PieChart display of tags in a given MemeBook.