de.smartics.tagcloud
Class Tag

Package class diagram package Tag
java.lang.Object
  extended by de.smartics.tagcloud.Tag

public class Tag
     
     
extends Object

Provides information about one tag.

Author:
Robert Reiner

Constructor Summary
Tag(String name, int score, int weight)
          Default constructor.
 
Method Summary
 String getName()
          Returns the name of the tag.
 int getScore()
          Returns the frequency the tag has been used.
 int getWeight()
          Returns the relative frequency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

public Tag(String name,
           int score,
           int weight)
Default constructor.

Parameters:
name - the name of the tag.
score - the frequency the tag has been used.
weight - the relative frequency.
Method Detail

getName

public String getName()
Returns the name of the tag.

Returns:
the name of the tag.

getScore

public int getScore()
Returns the frequency the tag has been used.

Returns:
the frequency the tag has been used.

getWeight

public int getWeight()
Returns the relative frequency.

Returns:
the relative frequency.


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