|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.definition.Paragraph
public class Paragraph
This object is used to set the paragraph formatting. For the paragraph, you can specify
the alignment, the font color, the indent and spacing, and so on. When possible, use the
IParagraph interface.
| Constructor Summary | |
|---|---|
Paragraph()
|
|
Paragraph(IParagraph src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
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. |
boolean |
hasContent(java.lang.Object srcParagraph)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
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 newReadingOrder)
Sets the reading order of the paragraphs. |
void |
setTabStops(TabStops tabStops)
Sets all of the tab stops in the paragraph. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Paragraph(IParagraph src)
public Paragraph()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only.
public void endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only.
public Alignment getAlignment()
IParagraphReturns the alignment of the paragraph.
getAlignment in interface IParagraphAlignment object that specifies the alignment of the paragraph.public IFontColor getFontColor()
IParagraphReturns the font color of the paragraph.
getFontColor in interface IParagraphIFontColor object that specifies the font color of the paragraph.IParagraph.setFontColor(com.crystaldecisions.sdk.occa.report.definition.IFontColor)public IIndentAndSpacingFormat getIndentAndSpacingFormat()
IParagraphReturns the indent and spacing for the paragraph.
getIndentAndSpacingFormat in interface IParagraphIIndentAndSpacingFormat object that specifies the indent and
spacing for the paragraph.public ParagraphElements getParagraphElements()
IParagraphReturns all of the paragraph elements in the paragraph.
getParagraphElements in interface IParagraphParagraphElements object containing all of the paragraph elements in
the paragraph.public ReadingOrder getReadingOrder()
IParagraphReturns the reading order of the paragraphs.
getReadingOrder in interface IParagraphReadingOrder object that specifies the reading order of the paragraphs.public TabStops getTabStops()
IParagraphReturns all of the tab stops in the paragraph.
getTabStops in interface IParagraphTabStops object that specifies all of the tab stops in the paragraph.public boolean hasContent(java.lang.Object srcParagraph)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only.
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOExceptionpublic void setAlignment(Alignment alignment)
IParagraphSets the alignment of the paragraph.
setAlignment in interface IParagraphalignment - An Alignment object that specifies the alignment of the paragraph.public void setFontColor(IFontColor fontColor)
IParagraph
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);
setFontColor in interface IParagraphfontColor - An IFontColor object that specifies the font color of the
paragraph.public void setIndentAndSpacingFormat(IIndentAndSpacingFormat indentAndSpacingFormat)
IParagraphSets the indent and spacing for the paragraph.
setIndentAndSpacingFormat in interface IParagraphindentAndSpacingFormat - An IIndentAndSpacingFormat object that specifies the indent and
spacing for the paragraph.public void setParagraphElements(ParagraphElements paragraphElements)
IParagraphSets all of the paragraph elements in the paragraph.
setParagraphElements in interface IParagraphparagraphElements - A ParagraphElements object containing all of the
paragraph elements in the paragraph.public void setReadingOrder(ReadingOrder newReadingOrder)
IParagraphSets the reading order of the paragraphs.
setReadingOrder in interface IParagraphnewReadingOrder - A ReadingOrder object that specifies the reading order of the paragraphs.public void setTabStops(TabStops tabStops)
IParagraphSets all of the tab stops in the paragraph.
setTabStops in interface IParagraphtabStops - A TabStops object that specifies all of the tab stops in the
paragraph.
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||