gdurelle / gwt-tagcloud

A gwt composite to create a tag cloud
1 stars 1 forks source link

Need some sample code please #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I installed it but cannot find any documentation even a small example... 

Original issue reported on code.google.com by schreibe...@gmail.com on 9 Jul 2010 at 1:44

GoogleCodeExporter commented 9 years ago
Some example code that makes a tag cloud with 1 word in it.

 private TagCloud generateTagCloud(String tags){
        String word = "hi";
        int frequency = 5;
        TagCloud temp = new TagCloud();

       WordTag example = new WordTag(word);
       example.setNumberOfOccurences(frequency);

      temp.addWord(example);

        return temp;
    }

That functions returns a tagCloud, which is a gwt widget (so you can use it 
anywhere you'd put a widget).

Original comment by rebecca....@gmail.com on 4 Apr 2011 at 2:22