de.smartics.tagcloud
Class AbstractTagCloudFactory

Package class diagram package AbstractTagCloudFactory
java.lang.Object
  extended by de.smartics.tagcloud.AbstractTagCloudFactory
All Implemented Interfaces:
TagCloudFactory

public abstract class AbstractTagCloudFactory
     
     
extends Object
implements TagCloudFactory

Base implementation of the TagCloudFactory interface.

Author:
Robert Reiner

Field Summary
protected  int maxTagsToDisplay
          The maximum number of tags to display.
protected  double maxWeight
          The maximum weight for the font.
protected  double minWeight
          The minimum weight for the font.
protected  boolean useJavaReservedWordsFilter
          The filter removes Java reserved words from the tag cloud.
protected  boolean useUsualWordsFilter
          The filter removes usual Java words from the tag cloud.
protected  String[] wordsToFilter
          The list of words to be removed from the tag cloud.
 
Constructor Summary
protected AbstractTagCloudFactory()
          Default constructor.
 
Method Summary
 void setMaxTagsToDisplay(int maxTagsToDisplay)
          The maximum number of tags to display.
 void setMaxWeight(double maxWeight)
          Sets the maximum weight for the font.
 void setMinWeight(double minWeight)
          Sets the minimum weight for the font.
 void setUseJavaReservedWordsFilter(boolean useJavaReservedWordsFilter)
          Activates the filter that removes Java reserved words from the tag cloud.
 void setUseUsualWordsFilter(boolean useUsualWordsFilter)
          Activates the filter that removes usual Java words from the tag cloud.
 void setWordsToFilter(String[] wordsToFilter)
          Sets the list of words to be removed from the tag cloud.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.smartics.tagcloud.TagCloudFactory
createJavaCloud, createTextCloud
 

Field Detail

minWeight

protected double minWeight
The minimum weight for the font.


maxWeight

protected double maxWeight
The maximum weight for the font.


maxTagsToDisplay

protected int maxTagsToDisplay
The maximum number of tags to display.


useJavaReservedWordsFilter

protected boolean useJavaReservedWordsFilter
The filter removes Java reserved words from the tag cloud.


useUsualWordsFilter

protected boolean useUsualWordsFilter
The filter removes usual Java words from the tag cloud.


wordsToFilter

protected String[] wordsToFilter
The list of words to be removed from the tag cloud. This allows an individual configuration.

Constructor Detail

AbstractTagCloudFactory

protected AbstractTagCloudFactory()
Default constructor.

Method Detail

setMinWeight

public void setMinWeight(double minWeight)
Sets the minimum weight for the font.

Specified by:
setMinWeight in interface TagCloudFactory
See Also:
TagCloudFactory.setMinWeight(double)

setMaxWeight

public void setMaxWeight(double maxWeight)
Sets the maximum weight for the font.

Specified by:
setMaxWeight in interface TagCloudFactory
Parameters:
maxWeight - the maximum weight for the font.
See Also:
TagCloudFactory.setMaxWeight(double)

setMaxTagsToDisplay

public void setMaxTagsToDisplay(int maxTagsToDisplay)
The maximum number of tags to display.

Specified by:
setMaxTagsToDisplay in interface TagCloudFactory
Parameters:
maxTagsToDisplay - the maximum number of tags to display.
See Also:
TagCloudFactory.setMaxTagsToDisplay(int)

setUseJavaReservedWordsFilter

public void setUseJavaReservedWordsFilter(boolean useJavaReservedWordsFilter)
Activates the filter that removes Java reserved words from the tag cloud.

Specified by:
setUseJavaReservedWordsFilter in interface TagCloudFactory
Parameters:
useJavaReservedWordsFilter - true to activate.
See Also:
TagCloudFactory.setUseJavaReservedWordsFilter(boolean)

setUseUsualWordsFilter

public void setUseUsualWordsFilter(boolean useUsualWordsFilter)
Activates the filter that removes usual Java words from the tag cloud.

Specified by:
setUseUsualWordsFilter in interface TagCloudFactory
Parameters:
useUsualWordsFilter - true to activate.
See Also:
TagCloudFactory.setUseUsualWordsFilter(boolean)

setWordsToFilter

public void setWordsToFilter(String[] wordsToFilter)
Sets the list of words to be removed from the tag cloud. This allows an individual configuration.

Specified by:
setWordsToFilter in interface TagCloudFactory
Parameters:
wordsToFilter - the list of words to be removed from the tag cloud.
See Also:
TagCloudFactory.setWordsToFilter(java.lang.String[])


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