|
|||||||||
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 |
doControllerModification(java.lang.Object newObject)
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
void |
enumerateMembers(IMemberVisitor visitor)
|
Alignment |
getAlignment()
Returns the alignment of the paragraph. |
ControllableMixin |
getControllableMixin()
|
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)
|
boolean |
isDirectlyControllable()
|
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()
IParagraph
Returns the alignment of the paragraph.
getAlignment
in interface IParagraph
Alignment
object that specifies the alignment of the paragraph.public IFontColor getFontColor()
IParagraph
Returns the font color of the paragraph.
getFontColor
in interface IParagraph
IFontColor
object that specifies the font color of the paragraph.IParagraph.setFontColor(com.crystaldecisions.sdk.occa.report.definition.IFontColor)
public IIndentAndSpacingFormat getIndentAndSpacingFormat()
IParagraph
Returns the indent and spacing for the paragraph.
getIndentAndSpacingFormat
in interface IParagraph
IIndentAndSpacingFormat
object that specifies the indent and
spacing for the paragraph.public ParagraphElements getParagraphElements()
IParagraph
Returns all of the paragraph elements in the paragraph.
getParagraphElements
in interface IParagraph
ParagraphElements
object containing all of the paragraph elements in
the paragraph.public ReadingOrder getReadingOrder()
IParagraph
Returns the reading order of the paragraphs.
getReadingOrder
in interface IParagraph
ReadingOrder
object that specifies the reading order of the paragraphs.public TabStops getTabStops()
IParagraph
Returns all of the tab stops in the paragraph.
getTabStops
in interface IParagraph
TabStops
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.IOException
public void setAlignment(Alignment alignment)
IParagraph
Sets the alignment of the paragraph.
setAlignment
in interface IParagraph
alignment
- 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 IParagraph
fontColor
- An IFontColor
object that specifies the font color of the
paragraph.public void setIndentAndSpacingFormat(IIndentAndSpacingFormat indentAndSpacingFormat)
IParagraph
Sets the indent and spacing for the paragraph.
setIndentAndSpacingFormat
in interface IParagraph
indentAndSpacingFormat
- An IIndentAndSpacingFormat
object that specifies the indent and
spacing for the paragraph.public void setParagraphElements(ParagraphElements paragraphElements)
IParagraph
Sets all of the paragraph elements in the paragraph.
setParagraphElements
in interface IParagraph
paragraphElements
- A ParagraphElements
object containing all of the
paragraph elements in the paragraph.public void setReadingOrder(ReadingOrder newReadingOrder)
IParagraph
Sets the reading order of the paragraphs.
setReadingOrder
in interface IParagraph
newReadingOrder
- A ReadingOrder
object that specifies the reading order of the paragraphs.public void setTabStops(TabStops tabStops)
IParagraph
Sets all of the tab stops in the paragraph.
setTabStops
in interface IParagraph
tabStops
- 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.
public ControllableMixin getControllableMixin()
public void doControllerModification(java.lang.Object newObject)
public boolean isDirectlyControllable()
public void enumerateMembers(IMemberVisitor visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |