Class TagCloudOnTagsGenerator.TagTagCloudItem
- java.lang.Object
-
- org.ametys.plugins.tagcloud.generators.TagCloudOnTagsGenerator.TagTagCloudItem
-
- All Implemented Interfaces:
AbstractTagCloudGenerator.TagCloudItem
- Enclosing class:
- TagCloudOnTagsGenerator
private class TagCloudOnTagsGenerator.TagTagCloudItem extends Object implements AbstractTagCloudGenerator.TagCloudItem
Class representing an item of tag cloud
-
-
Field Summary
Fields Modifier and Type Field Description private int
_occurence
private int
_position
private Tag
_tag
-
Constructor Summary
Constructors Constructor Description TagTagCloudItem(int occurence, Tag tag, int position)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOccurrenceCount()
Returns the number of occurrenceint
getPosition()
Get the original position.Tag
getTag()
Returns the tagI18nizableText
getWord()
Get the tag cloud word to display
-
-
-
Field Detail
-
_occurence
private int _occurence
-
_position
private int _position
-
-
Constructor Detail
-
TagTagCloudItem
public TagTagCloudItem(int occurence, Tag tag, int position)
Constructor- Parameters:
occurence
- the number of occurencetag
- the tagposition
- the item original position.
-
-
Method Detail
-
getWord
public I18nizableText getWord()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Get the tag cloud word to display- Specified by:
getWord
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- The tag cloud word
-
getOccurrenceCount
public int getOccurrenceCount()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Returns the number of occurrence- Specified by:
getOccurrenceCount
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- the number of occurrence
-
getPosition
public int getPosition()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Get the original position.- Specified by:
getPosition
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- the original position.
-
-