public class TagCloud
extends java.lang.Object
TagCloud
helps displaying a tag cloud with n-tile font sizes.Constructor and Description |
---|
TagCloud(Tag[] tags) |
TagCloud(Tag[] tags,
java.util.Locale locale) |
TagCloud(TagManager tagManager)
Deprecated.
|
TagCloud(TagManager tagManager,
Resource resource)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
calculateNtiles(long tagCount,
int n)
Calculates the n-tiles (eg.
|
static int |
calculateNtiles(long frequency,
long[] frequencies,
int n)
Calculates the n-tiles (eg.
|
Tag[] |
getTags() |
boolean |
isEmpty() |
public TagCloud(Tag[] tags)
public TagCloud(Tag[] tags, java.util.Locale locale)
@Deprecated public TagCloud(TagManager tagManager)
@Deprecated public TagCloud(TagManager tagManager, Resource resource)
public Tag[] getTags()
public boolean isEmpty()
public int calculateNtiles(long tagCount, int n)
tagCount
- the tagCount for which to calculate the resultn
- how many tiles the resulting value should havepublic static int calculateNtiles(long frequency, long[] frequencies, int n)
frequency
- the frequency for which to calculate the resultfrequencies
- a list of all frequenciesn
- how many tiles the resulting value should haveCopyright © 2010 - 2023 Adobe. All Rights Reserved