de.smartics.tagcloud.cavallo
Class CavalloCloudAdapter

Package class diagram package CavalloCloudAdapter
java.lang.Object
  extended by de.smartics.tagcloud.cavallo.CavalloCloudAdapter
All Implemented Interfaces:
TagCloud

public class CavalloCloudAdapter
     
     
extends Object
implements TagCloud

An adaptor for the tag cloud implementation opencloud by Marco Cavallo.

Author:
Robert Reiner

Constructor Summary
CavalloCloudAdapter(Locale locale, int maxTagsToDisplay, double minWeight, double maxWeight)
          Default constructor.
 
Method Summary
 void addOutputFilter(org.mcavallo.opencloud.filters.TagFilter filter)
          Adds the given output filter.
 void addTag(String tag)
          
 void clear()
          
 List<Tag> getTags()
          
 String toHtml()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CavalloCloudAdapter

public CavalloCloudAdapter(Locale locale,
                           int maxTagsToDisplay,
                           double minWeight,
                           double maxWeight)
Default constructor.

Parameters:
locale - the locale to pass to the implementation.
maxTagsToDisplay - the maximum number of tags to display.
minWeight - the minimum font weight of a tag displayed.
maxWeight - the maximum font weight of a tag displayed.
Method Detail

addTag

public void addTag(String tag)

Specified by:
addTag in interface TagCloud
See Also:
TagCloud.addTag(java.lang.String)

toHtml

public String toHtml()

Specified by:
toHtml in interface TagCloud
See Also:
TagCloud.toHtml()

addOutputFilter

public void addOutputFilter(org.mcavallo.opencloud.filters.TagFilter filter)
Adds the given output filter.

Parameters:
filter - the filter to add.

clear

public void clear()

Specified by:
clear in interface TagCloud
See Also:
TagCloud.clear()

getTags

public List<Tag> getTags()

Specified by:
getTags in interface TagCloud
See Also:
TagCloud.getTags()


Copyright © 2011-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.