|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.PageElement
|
+--com.cete.dynamicpdf.pageelements.RotatingPageElement
|
+--com.cete.dynamicpdf.pageelements.HtmlTextArea
This class can be used to place HTML formatted text onto an area of the page.
The HtmlTextArea class accepts the following HTML tags and attributes. Some of the attributes are in addition to the attribute found in HTML and are used for advanced paragraph and line properties. Please note that white space can be treated literally or ignored (standard behavior for HTML).
These tags map directly into the HtmlTextAreaStyle class. This class is used internally to manage the state of the HTML Text Area. The style property of the HTML Text Area represents the initial state of the text.
Enclosed text is bold.
| Attribute | Values | Description |
|---|---|---|
| Color | Web Color Hex String. | Color of the text. |
| Face | A string value. | The font family to use for the text. The 5 built-in font families ("Times" | "Helvetica" | "Courier" | "Symbol" | "ZapfDingbats") can be specified or additional ones can be added through the HtmlTextArea's FontFaces property. |
| Size | An integer value. | Specifies the HTML font size for the text. This is mapped to a point size internally (0 = 6 points, 1 = 8 points, 2 = 10 points, 3 = 12 points, 4 = 14 points, 5 = 18 points, 6 = 24 points, 7 = 36 points). |
| PointSize | A decimal value. | The size in points of the text. |
Enclosed text is italic.
| Attribute | Values | Description |
|---|---|---|
| Leading | A decimal value. | The leading of the line. |
| LeadingType | auto | atLeast | exactly | Specifies how leading is calculated. |
| Attribute | Values | Description |
|---|---|---|
| Align | left | right | center | justify | Alignment of the paragraph's text. |
| AllowOrphanLines | true | false | Specifies if one orphaned line should be allowed to be left on a page, or if it should be grouped with at least one other line for text continuation. |
| Indent | A decimal value. | The first line indentation of the paragraph in points. |
| LeftIndent | A decimal value. | The left indentation of the paragraph in points. |
| PreserveWhiteSpace | true | false | Specifies if white space should be preserved. |
| RightIndent | A decimal value. | The right indentation of the paragraph in points. |
| SpacingAfter | A decimal value. | The spacing after the paragraph in points. |
| SpacingBefore | A decimal value. | The spacing before the paragraph in points. |
Enclosed text is underlined.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
FormattedTextArea
| Constructor Summary | |
HtmlTextArea(char[] text,
float x,
float y,
float width,
float height,
FontFamily fontFamily,
float fontSize,
boolean preserveWhitespace)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
|
HtmlTextArea(char[] text,
float x,
float y,
float width,
float height,
HtmlTextAreaStyle style)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
|
HtmlTextArea(java.lang.String text,
float x,
float y,
float width,
float height,
FontFamily fontFamily,
float fontSize,
boolean preserveWhitespace)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
|
HtmlTextArea(java.lang.String text,
float x,
float y,
float width,
float height,
HtmlTextAreaStyle style)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
|
| Method Summary | |
protected void |
drawRotated(PageWriter writer)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
FontFamilyList |
getFontFaces()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
float |
getHeight()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
HtmlTextArea |
getOverflowHtmlTextArea()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
HtmlTextArea |
getOverflowHtmlTextArea(float x,
float y)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
HtmlTextArea |
getOverflowHtmlTextArea(float x,
float y,
float height)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
float |
getRequiredHeight()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
HtmlTextAreaStyle |
getStyle()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextAreaStyle class instead. |
java.lang.String |
getText()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
float |
getWidth()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
boolean |
hasOverflowText()
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
void |
setHeight(float value)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
void |
setStyle(HtmlTextAreaStyle value)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextAreaStyle class instead. |
void |
setText(java.lang.String value)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
void |
setWidth(float value)
Deprecated. As of DynamicPDF v4.0.0, Use the FormattedTextArea class instead. |
| Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
draw, getAngle, getX, getY, setAngle, setX, setY |
| Methods inherited from class com.cete.dynamicpdf.PageElement |
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cete.dynamicpdf.pageelements.ICoordinate |
getX, getY, setX, setY |
| Constructor Detail |
public HtmlTextArea(java.lang.String text,
float x,
float y,
float width,
float height,
FontFamily fontFamily,
float fontSize,
boolean preserveWhitespace)
HtmlTextArea class.
text - Text to display in the HTML text area.x - X coordinate of the HTML text area.y - Y coordinate of the HTML text area.width - Width of the HTML text area.height - Height of the HTML text area.fontFamily - Initial FontFamily of the HTML text area.fontSize - Initial font size of the HTML text area.preserveWhitespace - Specifies if white space should be preserved.FontFamily,
FormattedTextArea
public HtmlTextArea(java.lang.String text,
float x,
float y,
float width,
float height,
HtmlTextAreaStyle style)
HtmlTextArea class.
text - Text to display in the HTML text area.x - X coordinate of the HTML text area.y - Y coordinate of the HTML text area.width - Width of the HTML text area.height - Height of the HTML text area.style - Initial HtmlTextAreaStyle of the HTML text area.HtmlTextAreaStyle,
FormattedTextArea
public HtmlTextArea(char[] text,
float x,
float y,
float width,
float height,
FontFamily fontFamily,
float fontSize,
boolean preserveWhitespace)
HtmlTextArea class.
text - Text to display in the HTML text area.x - X coordinate of the HTML text area.y - Y coordinate of the HTML text area.width - Width of the HTML text area.height - Height of the HTML text area.fontFamily - Initial FontFamily of the HTML text area.fontSize - Initial font size of the HTML text area.preserveWhitespace - Specifies if white space should be preserved.FontFamily,
FormattedTextArea
public HtmlTextArea(char[] text,
float x,
float y,
float width,
float height,
HtmlTextAreaStyle style)
HtmlTextArea class.
text - Text to display in the HTML text area.x - X coordinate of the HTML text area.y - Y coordinate of the HTML text area.width - Width of the HTML text area.height - Height of the HTML text area.style - Initial HtmlTextAreaStyle of the HTML text area.HtmlTextAreaStyle,
FormattedTextArea| Method Detail |
public FontFamilyList getFontFaces()
FontFamily used by the HTML text area.
FontFamily used by the HTML text area.FontFamilyList,
FormattedTextAreapublic float getWidth()
getWidth in interface IAreaFormattedTextAreapublic void setWidth(float value)
setWidth in interface IAreaGeneratorException - If width is changed on an overflow HtmlTextAreavalue - The width of the HTML text area.FormattedTextAreapublic float getHeight()
getHeight in interface IAreagetHeight in class RotatingPageElementFormattedTextAreapublic void setHeight(float value)
setHeight in interface IAreasetHeight in class RotatingPageElementvalue - Height of the HTML text area.FormattedTextAreapublic java.lang.String getText()
GeneratorException - If Text is read on an overflow HtmlTextArea.
FormattedTextAreapublic void setText(java.lang.String value)
GeneratorException - If Text is changed on an overflow HtmlTextArea.value - Text for the HTML text area.FormattedTextAreapublic HtmlTextAreaStyle getStyle()
HtmlTextAreaStyle object used to specify the initial
style of the HTML text area.
HtmlTextAreaStyle Object used to specify the initial
style of the HTML text area.HtmlTextAreaStyle,
FormattedTextAreaStylepublic void setStyle(HtmlTextAreaStyle value)
HtmlTextAreaStyle object used to specify the initial
style of the HTML text area.
GeneratorException - If Style is changed on an overflow HtmlTextArea.value - HtmlTextAreaStyle Object used to specify the
initial style of the HTML text area.HtmlTextAreaStyle,
FormattedTextAreaStyleprotected void drawRotated(PageWriter writer)
PageWriter object.
drawRotated in class RotatingPageElementwriter - PageWriter object to receive the HTML text area's output.PageWriter,
FormattedTextAreapublic HtmlTextArea getOverflowHtmlTextArea()
HtmlTextArea object containing the overflow text. View Example
HtmlTextArea reference if there is overflow text. Otherwise null.FormattedTextArea
public HtmlTextArea getOverflowHtmlTextArea(float x,
float y)
HtmlTextArea object containing the overflow text. View Example
x - X coordinate of the new object.y - Y coordinate of the new object.
HtmlTextArea if there is overflow text. Otherwise null.FormattedTextArea
public HtmlTextArea getOverflowHtmlTextArea(float x,
float y,
float height)
HtmlTextArea object containing the overflow text. View Example
x - X coordinate of the new object.y - Y coordinate of the new object.height - Height of the new object.
HtmlTextArea if there is overflow text. Otherwise null.FormattedTextAreapublic float getRequiredHeight()
HtmlTextArea.
HtmlTextArea,
FormattedTextAreapublic boolean hasOverflowText()
HtmlTextArea.
HtmlTextArea,
FormattedTextArea
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||