DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class HtmlTextAreaStyle

java.lang.Object
  |
  +--com.cete.dynamicpdf.pageelements.HtmlTextAreaStyle

public class HtmlTextAreaStyle
extends java.lang.Object

This class can be used to define a certain style of text to be used with an HtmlTextArea.

View Example


Nested Class Summary
 class HtmlTextAreaStyle.LineStyle
           
 
Field Summary
 boolean bold
          Represents bold text.
 FontStyle font
          Represents font style.
 boolean italic
          Represents italic text.
 HtmlTextAreaStyle.LineStyle line
          Represents line style .
 ParagraphStyle paragraph
          Represents paragraph style .
 boolean underline
          Represents underline text.
 
Constructor Summary
HtmlTextAreaStyle(FontFamily fontFamily, float fontSize, boolean preserveWhiteSpace)
          Creates a new instance of HtmlTextAreaStyle
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests equality of styles.
 Font getFont()
          Returns the Font to use from the FontFamily of the style.
 int getHashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bold

public boolean bold
Represents bold text.


italic

public boolean italic
Represents italic text.


underline

public boolean underline
Represents underline text.


paragraph

public ParagraphStyle paragraph
Represents paragraph style .

See Also:
ParagraphStyle

font

public FontStyle font
Represents font style.


line

public HtmlTextAreaStyle.LineStyle line
Represents line style .

See Also:
HtmlTextAreaStyle.LineStyle
Constructor Detail

HtmlTextAreaStyle

public HtmlTextAreaStyle(FontFamily fontFamily,
                         float fontSize,
                         boolean preserveWhiteSpace)
Creates a new instance of HtmlTextAreaStyle

Parameters:
fontFamily - represents Font family of the style.
fontSize - represents size of font
preserveWhiteSpace - represents if WhiteSpaces have o be preserved
See Also:
FontFamily, FontStyle
Method Detail

equals

public boolean equals(java.lang.Object obj)
Tests equality of styles.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare to the current HtmlTextAreaStyle.
Returns:
true, if the two styles are equal. Otherwise false.

getHashCode

public int getHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns:
A hash code for the current HtmlTextAreaStyle object

getFont

public Font getFont()
Returns the Font to use from the FontFamily of the style.

Returns:
Font of the style
See Also:
FontFamily, Font

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software