|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IParagraph
This interface enables you to set the paragraph formatting. For the paragraph, you can specify the alignment, the font color, the indent and spacing, and so on.
TextObject objects contain a Paragraphs collection. Each Paragraphs
collection contains a number of Paragraph objects. These in turn contain
ParagraphElements. The ParagraphElements contain either
ParagraphTextElement objects, which store text to display, or
ParagraphFieldElement objects, which display text from some kind of field object.
This enables you to have minute control of the text objects' formatting options by formatting
the elements that constitute a paragraph. You can format each element of each paragraph in the
text object.
| Method Summary | |
|---|---|
Alignment |
getAlignment()
Returns the alignment of the paragraph. |
IFontColor |
getFontColor()
Returns the font color of the paragraph. |
IIndentAndSpacingFormat |
getIndentAndSpacingFormat()
Returns the indent and spacing for the paragraph. |
ParagraphElements |
getParagraphElements()
Returns all of the paragraph elements in the paragraph. |
ReadingOrder |
getReadingOrder()
Returns the reading order of the paragraphs. |
TabStops |
getTabStops()
Returns all of the tab stops in the paragraph. |
void |
setAlignment(Alignment alignment)
Sets the alignment of the paragraph. |
void |
setFontColor(IFontColor fontColor)
Sets the font color of the paragraph. |
void |
setIndentAndSpacingFormat(IIndentAndSpacingFormat indentAndSpacingFormat)
Sets the indent and spacing for the paragraph. |
void |
setParagraphElements(ParagraphElements paragraphElements)
Sets all of the paragraph elements in the paragraph. |
void |
setReadingOrder(ReadingOrder readingOrder)
Sets the reading order of the paragraphs. |
void |
setTabStops(TabStops tabStops)
Sets all of the tab stops in the paragraph. |
| Method Detail |
|---|
IIndentAndSpacingFormat getIndentAndSpacingFormat()
Returns the indent and spacing for the paragraph.
IIndentAndSpacingFormat object that specifies the indent and
spacing for the paragraph.ParagraphElements getParagraphElements()
Returns all of the paragraph elements in the paragraph.
ParagraphElements object containing all of the paragraph elements in
the paragraph.TabStops getTabStops()
Returns all of the tab stops in the paragraph.
TabStops object that specifies all of the tab stops in the paragraph.IFontColor getFontColor()
Returns the font color of the paragraph.
IFontColor object that specifies the font color of the paragraph.IParagraph.setFontColor(com.crystaldecisions.sdk.occa.report.definition.IFontColor)void setIndentAndSpacingFormat(IIndentAndSpacingFormat indentAndSpacingFormat)
Sets the indent and spacing for the paragraph.
indentAndSpacingFormat - An IIndentAndSpacingFormat object that specifies the indent and
spacing for the paragraph.void setParagraphElements(ParagraphElements paragraphElements)
Sets all of the paragraph elements in the paragraph.
paragraphElements - A ParagraphElements object containing all of the
paragraph elements in the paragraph.void setTabStops(TabStops tabStops)
Sets all of the tab stops in the paragraph.
tabStops - A TabStops object that specifies all of the tab stops in the
paragraph.void setFontColor(IFontColor fontColor)
Sets the font color of the paragraph. For this change to be persistent, use
IParagraphElement.setFontColor(IFontColor fontColor).
In order to set the font color, you will need to use syntax like:
ITextObject newText = (ITextObject) oldText.clone(true);
IFontColor fc = newText.getFontColor();
fc.setColor(java.awt.Color.red);
newText.setFontColor(fc);
objectController.modify(oldText, newText);
fontColor - An IFontColor object that specifies the font color of the
paragraph.Alignment getAlignment()
Returns the alignment of the paragraph.
Alignment object that specifies the alignment of the paragraph.ReadingOrder getReadingOrder()
Returns the reading order of the paragraphs.
ReadingOrder object that specifies the reading order of the paragraphs.void setAlignment(Alignment alignment)
Sets the alignment of the paragraph.
alignment - An Alignment object that specifies the alignment of the paragraph.void setReadingOrder(ReadingOrder readingOrder)
Sets the reading order of the paragraphs.
readingOrder - A ReadingOrder object that specifies the reading order of the paragraphs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||