edu.northwestern.at.utils.tagcloud
Class TagCloudTextStyle

java.lang.Object
  extended by edu.northwestern.at.utils.tagcloud.TagCloudTextStyle

public class TagCloudTextStyle
extends java.lang.Object

Text styles for tag cloud.

Defines text styles which can be plain, bold, italic, or bold and italic.


Field Summary
protected  boolean isBold
          Is text bold.
protected  boolean isItalic
          Is text italic.
 
Constructor Summary
TagCloudTextStyle(boolean isBold, boolean isItalic)
          Create text style.
 
Method Summary
 boolean isBold()
          Is style bold?
 boolean isItalic()
          Is style italics?
 boolean isNormal()
          Is style plain normal?
 java.lang.String toString()
          Get style as string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isBold

protected boolean isBold
Is text bold.


isItalic

protected boolean isItalic
Is text italic.

Constructor Detail

TagCloudTextStyle

public TagCloudTextStyle(boolean isBold,
                         boolean isItalic)
Create text style.

Parameters:
isBold - True if text is bold.
isItalic - True if text is italic.

Text may be both bold and italic.

Method Detail

isNormal

public boolean isNormal()
Is style plain normal?

Returns:
true if text is plain normal text.

isBold

public boolean isBold()
Is style bold?

Returns:
true if text is bold text.

isItalic

public boolean isItalic()
Is style italics?

Returns:
true if text is italic.

toString

public java.lang.String toString()
Get style as string.

Overrides:
toString in class java.lang.Object
Returns:
The style as a string.