DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class FormattedTextAreaStyle

java.lang.Object
  extended by com.cete.dynamicpdf.pageelements.FormattedTextAreaStyle

public class FormattedTextAreaStyle
extends java.lang.Object

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

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Nested Class Summary
 class FormattedTextAreaStyle.LineStyle
           
 
Field Summary
 boolean bold
          Represents bold text.
 FontStyle font
          Represents font style.
 boolean italic
          Represents italic text.
 FormattedTextAreaStyle.LineStyle line
          Represents line style .
 ParagraphStyle paragraph
          Represents paragraph style .
 float textRise
          Represents the rise level for superscript ot subscript.
 boolean underline
          Represents underline text.
 
Constructor Summary
FormattedTextAreaStyle(FontFamily fontFamily, float fontSize, boolean preserveWhiteSpace)
          Creates a new instance of FormattedTextAreaStyle class.
 
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 FormattedTextAreaStyle.LineStyle line
Represents line style .

See Also:
FormattedTextAreaStyle.LineStyle

textRise

public float textRise
Represents the rise level for superscript ot subscript.

Constructor Detail

FormattedTextAreaStyle

public FormattedTextAreaStyle(FontFamily fontFamily,
                              float fontSize,
                              boolean preserveWhiteSpace)
Creates a new instance of FormattedTextAreaStyle class.

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 FormattedTextAreaStyle.
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 FormattedTextAreaStyle 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 v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software